<!-- 博客 - 页面布局 > 上中下 -->



<!DOCTYPE html>
<html lang="zh-CN" data-default-color-scheme=dark>
<!-- 博客 - 导航栏上方 -->


<head>
  <meta charset="UTF-8">
  <link rel="apple-touch-icon" sizes="76x76" href="/blog/img/fluid.png">
  <link rel="icon" href="/blog/img/icon/dw.png">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0, shrink-to-fit=no">
  <meta http-equiv="x-ua-compatible" content="ie=edge">
  
  <meta name="theme-color" content="#2f4154">
  <meta name="author" content="Memory">
  <meta name="keywords" content="">

  
    <meta name="description" content="🌱 有些照片会褪色，但记忆不该模糊">
<meta property="og:type" content="article">
<meta property="og:title" content="溯源计划：给时光以备份，而非给备份以时光">
<meta property="og:url" content="https://test.atomgit.net/blog/2025/05/27/%E6%BA%AF%E6%BA%90%E8%AE%A1%E5%88%92%EF%BC%9A%E7%BB%99%E6%97%B6%E5%85%89%E4%BB%A5%E5%A4%87%E4%BB%BD%EF%BC%8C%E8%80%8C%E9%9D%9E%E7%BB%99%E5%A4%87%E4%BB%BD%E4%BB%A5%E6%97%B6%E5%85%89/index.html">
<meta property="og:site_name" content="Memory&#39;s blog">
<meta property="og:description" content="🌱 有些照片会褪色，但记忆不该模糊">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://test.atomgit.net/blog/img/artical/tree20250517.jpg">
<meta property="article:published_time" content="2025-05-27T15:35:30.000Z">
<meta property="article:modified_time" content="2025-07-06T15:35:30.000Z">
<meta property="article:author" content="Memory">
<meta property="article:tag" content="回忆">
<meta property="article:tag" content="相册">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image" content="https://test.atomgit.net/blog/img/artical/tree20250517.jpg">
  
  
  
  <title>溯源计划：给时光以备份，而非给备份以时光 - Memory&#39;s blog</title>

  <link  rel="stylesheet" href="https://lib.baomitu.com/twitter-bootstrap/4.6.1/css/bootstrap.min.css" />



  <link  rel="stylesheet" href="https://lib.baomitu.com/github-markdown-css/4.0.0/github-markdown.min.css" />

  <link  rel="stylesheet" href="https://lib.baomitu.com/hint.css/2.7.0/hint.min.css" />

  <link  rel="stylesheet" href="https://lib.baomitu.com/fancybox/3.5.7/jquery.fancybox.min.css" />



<!-- 主题依赖的图标库，不要自行修改 -->
<!-- Do not modify the link that theme dependent icons -->

<link rel="stylesheet" href="//at.alicdn.com/t/font_1749284_hj8rtnfg7um.css">



<link rel="stylesheet" href="//at.alicdn.com/t/font_1736178_lbnruvf0jn.css">


<link  rel="stylesheet" href="/blog/css/main.css" />


  <link id="highlight-css" rel="stylesheet" href="/blog/css/highlight.css" />
  
    <link id="highlight-css-dark" rel="stylesheet" href="/blog/css/highlight-dark.css" />
  



  
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.css">



  <script id="fluid-configs">
    var Fluid = window.Fluid || {};
    Fluid.ctx = Object.assign({}, Fluid.ctx)
    var CONFIG = {"hostname":"test.atomgit.net","root":"/blog/","version":"1.9.4","typing":{"enable":true,"typeSpeed":100,"cursorChar":"_","loop":false,"scope":[]},"anchorjs":{"enable":true,"element":"h1,h2,h3,h4,h5,h6","placement":"left","visible":"hover","icon":""},"progressbar":{"enable":true,"height_px":3,"color":"#29d","options":{"showSpinner":false,"trickleSpeed":100}},"code_language":{"enable":true,"default":"TEXT"},"copy_btn":true,"image_caption":{"enable":true},"image_zoom":{"enable":true,"img_url_replace":["",""]},"toc":{"enable":true,"placement":"right","headingSelector":"h1,h2,h3,h4,h5,h6","collapseDepth":0},"lazyload":{"enable":false,"loading_img":"/img/loading.gif","onlypost":false,"offset_factor":2},"web_analytics":{"enable":true,"follow_dnt":true,"baidu":null,"google":null,"gtag":null,"tencent":{"sid":null,"cid":null},"woyaola":null,"cnzz":null,"leancloud":{"appId":"T1hUHH9Ks1ggG9DBE3HgUPpV-gzGzoHsz","appKey":"XFkgzzvzNo3J3uNCbBiSOFKc","server_url":"https://t1huhh9k.lc-cn-n1-shared.com","path":"window.location.pathname","ignore_local":false}},"search_path":"/blog/local-search.xml"};

    if (CONFIG.web_analytics.follow_dnt) {
      var dntVal = navigator.doNotTrack || window.doNotTrack || navigator.msDoNotTrack;
      Fluid.ctx.dnt = dntVal && (dntVal.startsWith('1') || dntVal.startsWith('yes') || dntVal.startsWith('on'));
    }
  </script>
  <script  src="/blog/js/utils.js" ></script>
  <script  src="/blog/js/color-schema.js" ></script>
  

  

  

  

  

  

  

  



  
<meta name="generator" content="Hexo 5.4.2"></head>

<body>
  

  <header>
    <!-- 博客 - 导航栏上方 -->


<div class="header-inner" style="height: 100vh">
  <nav id="navbar" class="navbar fixed-top  navbar-expand-lg navbar-dark scrolling-navbar">
  <div class="container">
    <a class="navbar-brand" href="/blog/">
      <strong>Memory&#39;s blog</strong>
    </a>

    <button id="navbar-toggler-btn" class="navbar-toggler" type="button" data-toggle="collapse"
            data-target="#navbarSupportedContent"
            aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
      <div class="animated-icon"><span></span><span></span><span></span></div>
    </button>

    <!-- Collapsible content -->
    <div class="collapse navbar-collapse" id="navbarSupportedContent">
      <ul class="navbar-nav ml-auto text-center">
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/blog/">
                <i class="iconfont icon-home-fill"></i>
                <span>首页</span>
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/blog/archives/">
                <i class="iconfont icon-archive-fill"></i>
                <span>归档</span>
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/blog/categories/">
                <i class="iconfont icon-category-fill"></i>
                <span>分类</span>
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/blog/tags/">
                <i class="iconfont icon-tags-fill"></i>
                <span>标签</span>
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/blog/about/">
                <i class="iconfont icon-user-fill"></i>
                <span>关于</span>
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/blog/links/">
                <i class="iconfont icon-link-fill"></i>
                <span>友链</span>
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/blog/playlist/">
                <i class="iconfont icon-music"></i>
                <span>音乐</span>
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/blog/Memos/">
                <i class="iconfont icon-comment "></i>
                <span>说说</span>
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/blog/App/">
                <i class="iconfont icon-mobile"></i>
                <span>咫尺</span>
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item dropdown">
              <a class="nav-link dropdown-toggle" target="_self" href="javascript:;" role="button"
                 data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                <i class="iconfont icon-books"></i>
                <span>青简</span>
              </a>
              <div class="dropdown-menu" aria-labelledby="navbarDropdown">
                
                  
                  
                  
                  <a class="dropdown-item" target="_blank" rel="noopener" href="http://47.93.135.62:5230/explore">
                    <i class="iconfont icon-images"></i>
                    <span>碎念微光</span>
                  </a>
                
                  
                  
                  
                  <a class="dropdown-item" href="/blog/New/">
                    <i class="iconfont icon-bug"></i>
                    <span>匠册详析</span>
                  </a>
                
                  
                  
                  
                  <a class="dropdown-item" href="/blog/New/">
                    <i class="iconfont icon-xbox-fill"></i>
                    <span>窗景新编</span>
                  </a>
                
                  
                  
                  
                  <a class="dropdown-item" href="/blog/New/">
                    <i class="iconfont icon-steam"></i>
                    <span>戏码幕后</span>
                  </a>
                
                  
                  
                  
                  <a class="dropdown-item" href="/blog/New/">
                    <i class="iconfont icon-map"></i>
                    <span>他山随拾</span>
                  </a>
                
              </div>
            </li>
          
        
        
            <li class="nav-item" id="search-btn">
                <a class="nav-link" target="_self" href="javascript:;" data-toggle="modal" data-target="#modalNotice" aria-label="Search">
                    <i class="iconfont icon-book"></i>
                    <span>公告</span>
                </a>
            </li>
            
        
        
          <li class="nav-item" id="search-btn">
            <a class="nav-link" target="_self" href="javascript:;" data-toggle="modal" data-target="#modalSearch" aria-label="Search">
              <i class="iconfont icon-search"></i>
            </a>
          </li>
          
        
        
          <li class="nav-item" id="color-toggle-btn">
            <a class="nav-link" target="_self" href="javascript:;" aria-label="Color Toggle">
              <i class="iconfont icon-dark" id="color-toggle-icon"></i>
            </a>
          </li>
        
      </ul>
    </div>
  </div>
</nav>
 
<div id="banner" class="banner" parallax=true
     style="background: url('/blog/img/artical/tree20250517.jpg') no-repeat center center; background-size: cover;">
  <div class="full-bg-img">

    <div class="mask flex-center" style="background-color: rgba(0, 0, 0, 0.3)">
      <div class="banner-text text-center fade-in-up">

        <div class="h2">
          
            <span id="subtitle" data-typed-text="溯源计划：给时光以备份，而非给备份以时光"></span>
          
        </div>


        
          <!-- 文章页面 - 顶部信息 -->

<div class="mt-3">
  
  <span class="post-meta mr-2">
    <i class="iconfont icon-author" aria-hidden="true"></i>
    Memory
  </span>
   
  <span class="post-meta">
    <i class="iconfont icon-date-fill" aria-hidden="true"></i>
    <time datetime="2025-05-27 23:35" pubdate>
      2025年5月27日 晚上
    </time>
  </span>
  
</div>

<div class="mt-1">
  
  <span class="post-meta mr-2">
    <i class="iconfont icon-chart"></i>
     18k 字 
  </span>
   
  <span class="post-meta mr-2">
    <i class="iconfont icon-clock-fill"></i>
       46 分钟 
  </span>
     
  <span
    id="leancloud-page-views-container"
    class="post-meta"
    style="display: none"
  >
    <i class="iconfont icon-eye" aria-hidden="true"></i>
    <span id="leancloud-page-views"></span> 次
  </span>

    
</div>


        

        <!-- 添加网站运行时间 -->
        <div class="footer-content" style="background-color: transparent;">
          <div>
            <span id="timeDate"></span>
            <span id="times"></span>
            <script>
            var now = new Date();
            function createtime(){
                var grt= new Date("03/07/2023 00:00:00");//此处修改你的建站时间或者网站上线时间
                now.setTime(now.getTime()+250);
                days = (now - grt ) / 1000 / 60 / 60 / 24;
                dnum = Math.floor(days);
                hours = (now - grt ) / 1000 / 60 / 60 - (24 * dnum);
                hnum = Math.floor(hours);
                if(String(hnum).length ==1 ){
                    hnum = "0" + hnum;
                }
                minutes = (now - grt ) / 1000 /60 - (24 * 60 * dnum) - (60 * hnum);
                mnum = Math.floor(minutes);
                if(String(mnum).length ==1 ){
                          mnum = "0" + mnum;
                }
                seconds = (now - grt ) / 1000 - (24 * 60 * 60 * dnum) - (60 * 60 * hnum) - (60 * mnum);
                snum = Math.round(seconds);
                if(String(snum).length ==1 ){
                          snum = "0" + snum;
                }
                document.getElementById("timeDate").innerHTML = "🚀 &nbsp"+dnum+"&nbsp天";  //此次自定义显示内容
                document.getElementById("times").innerHTML = hnum + "&nbsp小时&nbsp" + mnum + "&nbsp分&nbsp" + snum + "&nbsp秒";
            }  

            if (!window.location.href.includes('/20')) {  
            setInterval("createtime()", 250);  // 只有当URL不包含'specific-page'时，才调用createtime  
            }//此次自定义显示内容
            </script>
          </div>
        </div>

      </div>
      
        <div class="scroll-down-bar">
          <i class="iconfont icon-arrowdown"></i>
        </div>
      
    </div>
  </div>
</div>

</div>

  </header>

  <main>
    
      <!-- 文章页  -->


<div class="container-fluid nopadding-x">

  <div class="row nomargin-x">
    <div class="side-col d-none d-lg-block col-lg-2">
      
  <aside class="sidebar category-bar" style="margin-right: -1rem">
    <!-- 文章页面 - 左边栏所属分类 -->
  

<!-- 文章页 - 文章分类 -->





<div class="category-list">
  
  
    
    
    
    <div class="category row nomargin-x">
      <a class="category-item 
          list-group-item category-item-action col-10 col-md-11 col-xm-11" title="旧梦轻拾"
        id="heading-f768689621e1a81f9a71173c1017338e" role="tab" data-toggle="collapse" href="#collapse-f768689621e1a81f9a71173c1017338e"
        aria-expanded="true"
      >
        旧梦轻拾
        <span class="list-group-count">(11)</span>
        <i class="iconfont icon-arrowright"></i>
      </a>
      
      <div class="category-collapse collapse show" id="collapse-f768689621e1a81f9a71173c1017338e"
           role="tabpanel" aria-labelledby="heading-f768689621e1a81f9a71173c1017338e">
        
        
          
          
  <div class="category-post-list">
    
    
      
      
        <a href="/blog/2024/01/05/%E5%B2%81%E6%9C%88%E5%A6%82%E6%AD%8C%EF%BC%9A%E6%88%91%E7%9A%84%E4%BA%BA%E7%94%9F%E5%9B%9E%E5%BF%86%E5%BD%95/" title="岁月如歌：我的人生回忆录"
           class="list-group-item list-group-item-action
           ">
          <span class="category-post">岁月如歌：我的人生回忆录</span>
        </a>
      
    
      
      
        <a href="/blog/2024/07/14/%E6%82%A0%E7%84%B6%E6%97%A5%E5%B8%B8%EF%BC%9A%E6%85%A2%E7%85%AE%E6%97%B6%E5%85%89%E4%B8%8B%E7%9A%84%E7%94%9F%E6%B4%BB%E8%89%BA%E6%9C%AF/" title="悠然日常：慢煮时光下的生活艺术"
           class="list-group-item list-group-item-action
           ">
          <span class="category-post">悠然日常：慢煮时光下的生活艺术</span>
        </a>
      
    
      
      
        <a href="/blog/2024/08/18/%E6%97%B6%E5%85%89%E4%B8%8D%E8%80%81%EF%BC%8C%E6%88%91%E4%BB%AC%E4%B8%8D%E6%95%A3%EF%BC%9A%E8%87%B4%E6%88%91%E7%94%9F%E5%91%BD%E4%B8%AD%E6%9C%80%E7%8F%8D%E8%B4%B5%E7%9A%84%E6%9C%8B%E5%8F%8B%E4%BB%AC/" title="时光不老，我们不散：致我生命中最珍贵的朋友们"
           class="list-group-item list-group-item-action
           ">
          <span class="category-post">时光不老，我们不散：致我生命中最珍贵的朋友们</span>
        </a>
      
    
      
      
        <a href="/blog/2024/08/20/%E6%97%B6%E5%85%89%E4%BF%A1%E7%AE%B1%EF%BC%9A%E5%86%99%E7%BB%99%E6%9C%AA%E6%9D%A5%E7%9A%84%E8%87%AA%E5%B7%B1/" title="时光信箱：写给未来的自己"
           class="list-group-item list-group-item-action
           ">
          <span class="category-post">时光信箱：写给未来的自己</span>
        </a>
      
    
      
      
        <a href="/blog/2025/03/30/%E6%B8%B8%E6%88%8F%E4%BA%BA%E7%94%9F%EF%BC%9A%E9%82%A3%E4%BA%9B%E5%B9%B4%EF%BC%8C%E6%88%91%E7%8E%A9%E8%BF%87%E7%9A%84%E4%B8%8D%E4%BB%85%E4%BB%85%E6%98%AF%E6%B8%B8%E6%88%8F/" title="游戏人生：那些年，我玩过的不仅仅是游戏"
           class="list-group-item list-group-item-action
           ">
          <span class="category-post">游戏人生：那些年，我玩过的不仅仅是游戏</span>
        </a>
      
    
      
      
        <a href="/blog/2025/05/27/%E6%BA%AF%E6%BA%90%E8%AE%A1%E5%88%92%EF%BC%9A%E7%BB%99%E6%97%B6%E5%85%89%E4%BB%A5%E5%A4%87%E4%BB%BD%EF%BC%8C%E8%80%8C%E9%9D%9E%E7%BB%99%E5%A4%87%E4%BB%BD%E4%BB%A5%E6%97%B6%E5%85%89/" title="溯源计划：给时光以备份，而非给备份以时光"
           class="list-group-item list-group-item-action
           active">
          <span class="category-post">溯源计划：给时光以备份，而非给备份以时光</span>
        </a>
      
    
  </div>

          
  
    
    
    
    <div class="category-sub row nomargin-x">
      <a class="category-subitem collapsed
          list-group-item category-item-action col-10 col-md-11 col-xm-11" title="人间片刻"
        id="heading-dd80860a5b6afeead60edc9339f99a49" role="tab" data-toggle="collapse" href="#collapse-dd80860a5b6afeead60edc9339f99a49"
        aria-expanded="false"
      >
        人间片刻
        <span class="list-group-count">(3)</span>
        <i class="iconfont icon-arrowright"></i>
      </a>
      
      <div class="category-collapse collapse " id="collapse-dd80860a5b6afeead60edc9339f99a49"
           role="tabpanel" aria-labelledby="heading-dd80860a5b6afeead60edc9339f99a49">
        
        
          
  <div class="category-post-list">
    
    
      
      
        <a href="/blog/2023/06/03/%E9%98%B3%E5%8F%B0%E6%97%A5%E8%AE%B0%EF%BC%9A%E4%B8%80%E4%B8%AA%E6%8A%80%E6%9C%AF%E4%BA%BA%E6%94%BE%E4%B8%8B%E9%94%AE%E7%9B%98%E5%90%8E%E7%9A%84%E7%94%9F%E6%B4%BB%E5%88%87%E7%89%87/" title="阳台日记：一个技术人放下键盘后的生活切片"
           class="list-group-item list-group-item-action
           ">
          <span class="category-post">阳台日记：一个技术人放下键盘后的生活切片</span>
        </a>
      
    
      
      
        <a href="/blog/2023/10/09/%E5%8F%99%E4%BA%8B%E4%B9%8B%E5%A4%96%EF%BC%8C%E5%9C%A8%E7%81%B5%E9%AD%82%E6%82%84%E7%84%B6%E5%8F%91%E5%85%89%E7%9A%84%E7%9E%AC%E9%97%B4%E7%8C%AE%E4%BA%88%E8%87%AA%E5%B7%B1%E7%9A%84%E6%97%B7%E9%87%8E%E6%98%9F%E6%B2%B3/" title="叙事之外，在灵魂悄然发光的瞬间献予自己的旷野星河"
           class="list-group-item list-group-item-action
           ">
          <span class="category-post">叙事之外，在灵魂悄然发光的瞬间献予自己的旷野星河</span>
        </a>
      
    
      
      
        <a href="/blog/2025/11/14/%E6%B5%AE%E7%94%9F%E8%8B%A5%E6%A2%A6%EF%BC%9A%E5%8D%8A%E9%86%92%E7%9A%84%E4%BD%99%E9%9F%B5%E6%98%AF%E6%84%8F%E8%AF%86%E6%B5%81%E5%8A%A8%E7%9A%84%E5%BD%A2%E7%8A%B6/" title="浮生若梦：半醒的余韵是意识流动的形状"
           class="list-group-item list-group-item-action
           ">
          <span class="category-post">浮生若梦：半醒的余韵是意识流动的形状</span>
        </a>
      
    
  </div>

        
      </div>
    </div>
  
    
    
    
    <div class="category-sub row nomargin-x">
      <a class="category-subitem collapsed
          list-group-item category-item-action col-10 col-md-11 col-xm-11" title="灵感工坊"
        id="heading-25bfe24619af88a892eccc0d7b6f2dc7" role="tab" data-toggle="collapse" href="#collapse-25bfe24619af88a892eccc0d7b6f2dc7"
        aria-expanded="false"
      >
        灵感工坊
        <span class="list-group-count">(1)</span>
        <i class="iconfont icon-arrowright"></i>
      </a>
      
      <div class="category-collapse collapse " id="collapse-25bfe24619af88a892eccc0d7b6f2dc7"
           role="tabpanel" aria-labelledby="heading-25bfe24619af88a892eccc0d7b6f2dc7">
        
        
          
  <div class="category-post-list">
    
    
      
      
        <a href="/blog/2024/06/13/%E6%97%B6%E5%85%89%E7%BC%96%E7%BB%87%EF%BC%9A%E5%A4%A7%E5%AD%A6%E7%94%9F%E6%B6%AF%E4%B8%AD%E7%9A%84%E5%89%AF%E4%B8%9A%E6%8E%A2%E7%B4%A2%E4%B9%8B%E6%97%85/" title="时光编织：大学生涯中的副业探索之旅"
           class="list-group-item list-group-item-action
           ">
          <span class="category-post">时光编织：大学生涯中的副业探索之旅</span>
        </a>
      
    
  </div>

        
      </div>
    </div>
  
    
    
    
    <div class="category-sub row nomargin-x">
      <a class="category-subitem collapsed
          list-group-item category-item-action col-10 col-md-11 col-xm-11" title="职路星火"
        id="heading-59c550454d1ecf67a2ead26a1c46d14b" role="tab" data-toggle="collapse" href="#collapse-59c550454d1ecf67a2ead26a1c46d14b"
        aria-expanded="false"
      >
        职路星火
        <span class="list-group-count">(1)</span>
        <i class="iconfont icon-arrowright"></i>
      </a>
      
      <div class="category-collapse collapse " id="collapse-59c550454d1ecf67a2ead26a1c46d14b"
           role="tabpanel" aria-labelledby="heading-59c550454d1ecf67a2ead26a1c46d14b">
        
        
          
  <div class="category-post-list">
    
    
      
      
        <a href="/blog/2024/11/12/%E8%87%B3%E6%9A%97%E6%97%B6%E5%88%BB%EF%BC%9A%E5%9C%A8%E6%BC%AB%E9%95%BF%E7%9A%84%E6%B1%82%E8%81%8C%E6%9C%9F%E4%B8%AD%E5%90%8C%E8%87%AA%E5%B7%B1%E5%92%8C%E8%A7%A3/" title="至暗时刻：在漫长的求职期中同自己和解"
           class="list-group-item list-group-item-action
           ">
          <span class="category-post">至暗时刻：在漫长的求职期中同自己和解</span>
        </a>
      
    
  </div>

        
      </div>
    </div>
  
        
      </div>
    </div>
  
</div>

  </aside>


    </div>

    <div class="col-lg-8 nopadding-x-md">
      <div class="container nopadding-x-md" id="board-ctn">
        <div id="board">
          <article class="post-content mx-auto">
            <!-- SEO header -->
            <h1 style="display: none">溯源计划：给时光以备份，而非给备份以时光</h1>
            
              <p class="note note-success">
                
                  
                    本文最后更新于：5 个月前
                  
                
              </p>
            
            
              <div class="markdown-body">
                
                <h1 id="显影"><a href="#显影" class="headerlink" title="显影"></a>显影</h1><blockquote>
<p>2025 年 5 月 28 日</p>
</blockquote>
<p>这并不是一件容易的事。</p>
<p>早在去年四月份便开启了第一次时光剪影，我尝试尽可能多的搜集群聊里的家庭照片，连同手机相册一起整理分类归档。</p>
<p>这项工作断断续续做了一年多，直至刚刚过去的三月中旬里，已然完善了本机内存储的照片影集。</p>
<p>不过这些还不够，还有很多记忆没有拾取，还需要抓紧时间搜罗起来。</p>
<p>想用这些泛黄的旧照片，留住那些早已消逝在过去的只言片语。</p>
<p>昨天晚上灵感一现，想到可以打造一个专属于自己的云端相册，美观的界面和便捷的影集管理，目前市面上应该有现成的容器支持。</p>
<p>果不其然，经过简单的搜寻和了解，短时间内总算确定了一项合适的可实操方案。</p>
<p><strong>给时光以备份，而非给备份以时光。</strong></p>
<p>溯源计划，就是用先进的数字技术留住过去的旧时光，让家族的记忆在数字云端生长发芽。</p>
<p>每一张照片都是一段时光的切片，藏匿着未被言说的故事。</p>
<p><strong>当科技与诗意交织，相册便成了溯源的起点</strong>——不是追问从何处来，而是标记我们曾如何存在。</p>
<p>有些照片会褪色，但记忆不该模糊。</p>
<h1 id="云端剪影"><a href="#云端剪影" class="headerlink" title="云端剪影"></a>云端剪影</h1><blockquote>
<p>2025 年 5 月 27 日</p>
</blockquote>
<p>快速了解下可以参考哪些方案实现云端存储，要求操作管理方便，技术支持可靠，更重要的是页面一定是美观大气的。</p>
<p><a target="_blank" rel="noopener" href="https://www.bilibili.com/video/BV1ACzNY4EoK/?spm_id_from=333.337.search-card.all.click&vd_source=4314e5bd742ea904c9675af8a6b4b07e">03.用 Immich 打造私有云相册_哔哩哔哩_bilibili</a></p>
<p><a target="_blank" rel="noopener" href="https://www.bilibili.com/video/BV1gJ4m1W7jP/?spm_id_from=333.337.search-card.all.click&vd_source=4314e5bd742ea904c9675af8a6b4b07e">带 AI 场景/人物识别，超好用的 NAS 本地相册应用——immich（附部署和使用教程）_哔哩哔哩_bilibili</a></p>
<p><a target="_blank" rel="noopener" href="http://deng-2022.atomgit.net/blog/">Memory’s blog (atomgit.net)</a></p>
<p><a target="_blank" rel="noopener" href="https://immich.app/">Home | Immich</a></p>
<p><a target="_blank" rel="noopener" href="https://www.qiniu.com/">七牛云 | 一站式中立音视频云 + AI (qiniu.com)</a></p>
<p><a target="_blank" rel="noopener" href="https://www.bilibili.com/video/BV1gJ4m1W7jP/?spm_id_from=333.337.search-card.all.click&vd_source=4314e5bd742ea904c9675af8a6b4b07e">带 AI 场景/人物识别，超好用的 NAS 本地相册应用——immich（附部署和使用教程）_哔哩哔哩_bilibili</a></p>
<p><a target="_blank" rel="noopener" href="https://dc.console.aliyun.com/next/index?spm=a2c1d.8251892.console-base_product-drawer-right.ddomain.281f5b76ZIJntQ#/domain-list/all">域名控制台 (aliyun.com)</a></p>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/S_ZaiJiangHu/article/details/133503751">NAS-Raid 方案之 unraid-CSDN 博客</a></p>
<p><a target="_blank" rel="noopener" href="https://cloud.tencent.com/developer/article/2233633?policyId=1004">低成本搭建一台 Unraid 家庭存储服务器：中篇-腾讯云开发者社区-腾讯云 (tencent.com)</a></p>
<p>基本了解。</p>
<p>部署至本机当然不合适，将来一定会选择部署在云服务器上，用现有的稳定云环境做支撑是最可靠的选择，只是暂时财力有限。</p>
<p>上传并批量导入图片不仅要考虑效率问题，更重要的是做好空间管理，目前没有更好的办法来容纳接近三十 GB 的本地图片视频资源。</p>
<p>这些都要慢慢考虑。</p>
<h1 id="Memos"><a href="#Memos" class="headerlink" title="Memos"></a>Memos</h1><blockquote>
<p>2025 年 7 月 21 日</p>
</blockquote>
<p><a target="_blank" rel="noopener" href="https://www.usememos.com/changelog/0-25-0">Release v0.25.0 - Memos</a></p>
<p>跟那位老哥说的完全一致，这项服务每隔一段时间都会出现破坏性更新，五天前新版本出现后融入 Hexo 直接失败，怪不得最近这段时间怎么都调整不好。</p>
<p>明天再搞，得重新拉取最新镜像重新部署才行。</p>
<p><a target="_blank" rel="noopener" href="https://github.com/usememos/memos/releases/tag/v0.25.0">Release v0.25.0 · usememos/memos · GitHub</a></p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">docker images  <br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">docker pull usememos/memos<br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash"><span class="hljs-built_in">cd</span> /dockerData/memos<br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">docker stop fffdc938fd5b<br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">docker compose pull<br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">docker compose up -d<br></code></pre></td></tr></table></figure>

<p>绝了，拉取最新版本后仍旧没法获取图文，今下午本地部署 Hexo 后还能正常获取，现在也不能正常连接了。</p>
<p>又出问题：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><code class="hljs bash">[root@iZ2zehqnajgv7sc3i778n0Z memos]<span class="hljs-comment"># docker compose up -d</span><br>[+] Running 1/1<br> ✘ memos Error Get <span class="hljs-string">&quot;https://registry-1.docker.io/v2/&quot;</span>: net/http: request canceled <span class="hljs-keyword">while</span> waiting <span class="hljs-keyword">for</span> connection (Client.Timeout exceeded <span class="hljs-keyword">while</span> awaiting headers)                                  18.0s <br>Error response from daemon: Get <span class="hljs-string">&quot;https://registry-1.docker.io/v2/&quot;</span>: net/http: request canceled <span class="hljs-keyword">while</span> waiting <span class="hljs-keyword">for</span> connection (Client.Timeout exceeded <span class="hljs-keyword">while</span> awaiting headers)<br>[root@iZ2zehqnajgv7sc3i778n0Z memos]<span class="hljs-comment">#</span><br></code></pre></td></tr></table></figure>

<p>被忽悠了。</p>
<p>新版本改动没有涉及到请求API方面，不会影响已部署的 Memos 服务，除非停止服务后拉取最新版本 Memos:v0.25.0。</p>
<p>在 docker-compose.yml 文件中指定 Memos 原 v0.24.3 版本再部署，解决了这个问题。</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br></pre></td><td class="code"><pre><code class="hljs bash">services:<br>  memos:<br>    image: usememos/memos:0.24<br>    container_name: memos<br>    restart: unless-stopped<br>    ports:<br>      - <span class="hljs-string">&quot;5230:5230&quot;</span><br>    volumes:<br>      - /dockerData/memos/data:/var/opt/memos<br>    environment:<br>      - MEMOS_MODE=prod<br>      - MEMOS_PORT=5230<br></code></pre></td></tr></table></figure>

<p>一直困扰我的问题总算出现了，跨域问题。</p>
<p><img src="http://blog.memory-life.xyz/image-20250721224011530.png" alt="image-20250721224011530"></p>
<p>以下原本是 v0.22 版本后支持的解决跨域问题方案，同理可以搭建配置 Nginx 解决。</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br></pre></td><td class="code"><pre><code class="hljs bash">services:<br>  memos:<br>    image: usememos/memos:0.24<br>    container_name: memos<br>    restart: unless-stopped<br>    ports:<br>      - <span class="hljs-string">&quot;5230:5230&quot;</span><br>    volumes:<br>      - /dockerData/memos/data:/var/opt/memos<br>    environment:<br>      - MEMOS_MODE=prod<br>      - MEMOS_PORT=5230<br>    <span class="hljs-built_in">command</span>: <br>      - <span class="hljs-string">&quot;--cors-domain=http://47.93.135.62:5230,https://deng-2022.atomgit.net/blog/Memos/&quot;</span><br></code></pre></td></tr></table></figure>

<p>不过我猛然意识到 Memos 服务站点协议为 http，而不知何时访问个人博客站点时将其协议改为了 https，协议不同从而导致了跨域问题。</p>
<p>疏忽了，不过好在问题顺利解决。</p>
<figure class="highlight angelscript"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs angelscript">Memory	<span class="hljs-symbol">Dw990831@</span><br></code></pre></td></tr></table></figure>

<figure class="highlight angelscript"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs angelscript">Cloud	<span class="hljs-symbol">Dw990831@</span><br></code></pre></td></tr></table></figure>

<figure class="highlight angelscript"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs angelscript">Wish	<span class="hljs-symbol">Dw990831@</span><br></code></pre></td></tr></table></figure>

<blockquote>
<p>2025 年 7 月 6 日</p>
</blockquote>
<p>每张照片都是时光的便签，随手一贴就记下了那天。</p>
<p><img src="http://blog.memory-life.xyz/image-20250706104959894.png" alt="image-20250706104959894"></p>
<p><img src="http://blog.memory-life.xyz/image-20250706105023346.png" alt="image-20250706105023346"></p>
<p><img src="http://blog.memory-life.xyz/image-20250706105039891.png" alt="image-20250706105039891"></p>
<blockquote>
<p>2025 年 6 月 30 日</p>
</blockquote>
<p><a target="_blank" rel="noopener" href="https://www.usememos.com/blog">Blog - Memos (usememos.com)</a></p>
<p>在线访问地址：<a target="_blank" rel="noopener" href="http://47.93.135.62:5230/">Memos</a></p>
<blockquote>
<p>2025 年 6 月 28 日</p>
</blockquote>
<p><a target="_blank" rel="noopener" href="https://juejin.cn/post/7520471519417499689">自建 Memos 服务：碎片化笔记 + 博客说说栏，一栈双用 Memos 是一款轻量的自托管的备忘录中心。你可以把它当作个 - 掘金 (juejin.cn)</a></p>
<p><a target="_blank" rel="noopener" href="https://juejin.cn/post/7270155117705576504?searchId=202506281636511348CAB6031DFD725E2A">17.8k Star!开源且支持私有化部署的碎片化知识卡片管理工具-Memos 应用简览 主要特性 开源且永久免费：Mem - 掘金 (juejin.cn)</a></p>
<p><a target="_blank" rel="noopener" href="https://www.mintimate.cn/Memos/">心猿意马 - 雨月空间站 (mintimate.cn)</a></p>
<p>用一张照片来代表今天。</p>
<h2 id="部署"><a href="#部署" class="headerlink" title="部署"></a>部署</h2><blockquote>
<p>2025 年 6 月 30 日</p>
</blockquote>
<figure class="highlight css"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs css">ICP备案（互联网内容提供商备案）详解​​<br>ICP备案（Internet <span class="hljs-attribute">Content</span> Provider备案）是中国大陆对网站或互联网服务进行合法化管理的重要制度，由​​国家工业和信息化部（MIIT）​​监管，所有在中国大陆境内提供服务的网站或服务器必须完成备案，否则可能被关停或屏蔽访问。<br></code></pre></td></tr></table></figure>

<p>今天上午十点半，购买了新的云服务器，提交域名备案初审。</p>
<p><img src="http://blog.memory-life.xyz/image-20250630102839185.png" alt="image-20250630102839185"></p>
<p><a target="_blank" rel="noopener" href="https://help.aliyun.com/zh/icp-filing/basic-icp-service/user-guide/sms-check?spm=5176.62f6de69.icp_beian.7.387479feiC7qFE">备案短信核验_备案(Filing Service)-阿里云帮助中心 (aliyun.com)</a></p>
<p><a target="_blank" rel="noopener" href="https://www.alibabacloud.com/help/zh/ecs/use-cases/install-and-use-docker">安装 Docker - 云服务器 ECS - 阿里云 (alibabacloud.com)</a></p>
<p>按这个方法安装 Docker。</p>
<p><strong>安装 Docker。</strong></p>
<p>安装 Docker，执行以下命令安装 Docker 社区版本，通过查看 Docker 版本命令，验证 Docker 是否安装成功。</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br></pre></td><td class="code"><pre><code class="hljs bash"><span class="hljs-comment">#添加Docker软件包源</span><br>sudo wget -O /etc/yum.repos.d/docker-ce.repo http://mirrors.cloud.aliyuncs.com/docker-ce/linux/centos/docker-ce.repo<br>sudo sed -i <span class="hljs-string">&#x27;s|https://mirrors.aliyun.com|http://mirrors.cloud.aliyuncs.com|g&#x27;</span> /etc/yum.repos.d/docker-ce.repo<br><span class="hljs-comment">#Alibaba Cloud Linux3专用的dnf源兼容插件</span><br>sudo dnf -y install dnf-plugin-releasever-adapter --repo alinux3-plus<br><span class="hljs-comment">#安装Docker社区版本，容器运行时containerd.io，以及Docker构建和Compose插件</span><br>sudo dnf -y install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin<br><span class="hljs-comment">#启动Docker</span><br>sudo systemctl start docker<br><span class="hljs-comment">#设置Docker守护进程在系统启动时自动启动</span><br>sudo systemctl <span class="hljs-built_in">enable</span> docker<br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">sudo docker -v<br></code></pre></td></tr></table></figure>

<p>创建简单 Web 程序镜像，构建 Web 程序镜像，启动 Web 程序镜像的容器，并且命名容器名称为<code>hello-world</code>。</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><code class="hljs bash"><span class="hljs-comment">#拉取Nginx镜像</span><br>sudo docker pull nginx:latest<br><span class="hljs-comment">#创建Dockerfile设置Nginx作为基础镜像，并在Web服务器的根目录创建一个显示Hello World!的index.html文件。</span><br>sudo <span class="hljs-built_in">tee</span> Dockerfile &lt;&lt;-<span class="hljs-string">&#x27;EOF&#x27;</span><br>FROM nginx:latest<br>RUN <span class="hljs-built_in">echo</span> <span class="hljs-string">&#x27;Hello World!&#x27;</span> &gt; /usr/share/nginx/html/index.html<br>EOF<br><span class="hljs-comment">#构建镜像，镜像名称为hello-world</span><br>sudo docker build . -t hello-world:latest<br></code></pre></td></tr></table></figure>

<p>不过这里第一步拉取 Nginx 镜像就失败了，得配置 Docker 镜像加速器。</p>
<p>登录阿里云控制台，进入 <strong>容器镜像服务 &gt; 镜像加速器</strong>，获取专属加速地址（如 <code>https://&lt;your-id&gt;.mirror.aliyuncs.com</code>）。</p>
<p><a target="_blank" rel="noopener" href="https://cr.console.aliyun.com/cn-beijing/instances">容器镜像服务 ACR 控制台 (aliyun.com)</a></p>
<figure class="highlight awk"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs awk">https:<span class="hljs-regexp">//</span><span class="hljs-number">0</span>i6jgqxx.mirror.aliyuncs.com<br></code></pre></td></tr></table></figure>

<p>修改 Docker 配置。</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><code class="hljs bash">sudo <span class="hljs-built_in">mkdir</span> -p /etc/docker<br>sudo <span class="hljs-built_in">tee</span> /etc/docker/daemon.json &lt;&lt;-<span class="hljs-string">&#x27;EOF&#x27;</span><br>&#123;<br>  <span class="hljs-string">&quot;registry-mirrors&quot;</span>: [<span class="hljs-string">&quot;https://0i6jgqxx.mirror.aliyuncs.com&quot;</span>]<br>&#125;<br>EOF<br>sudo systemctl daemon-reload<br>sudo systemctl restart docker<br></code></pre></td></tr></table></figure>

<p>镜像源修改成功，直接拉取 Nginx 镜像，一切顺利。</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br></pre></td><td class="code"><pre><code class="hljs bash">[root@iZ2zehqnajgv7sc3i778n0Z ~]<span class="hljs-comment"># sudo docker pull nginx:latest</span><br>latest: Pulling from library/nginx<br>a2abf6c4d29d: Pull complete<br>a9edb18cadd1: Pull complete<br>589b7251471a: Pull complete<br>186b1aaa4aa6: Pull complete<br>b4df32aa5a72: Pull complete<br>a0bcbecc962e: Pull complete<br>Digest: sha256:0d17b565c37bcbd895e9d92315a05c1c3c9a29f762b011a10c54a66cd53c9b31<br>Status: Downloaded newer image <span class="hljs-keyword">for</span> nginx:latest<br>docker.io/library/nginx:latest<br></code></pre></td></tr></table></figure>

<p>我记得今年年初也有过解决 Docker 拉取镜像失败的问题，同样是修改镜像源，操作基本相同，参考以下文章。</p>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/m0_51492817/article/details/140332408">Docker 修改国内镜像源_docker 更换国内镜像源-CSDN 博客</a></p>
<p>这篇写得很详细了：<a target="_blank" rel="noopener" href="https://blog.51cto.com/u_16213434/11776091">docker 切换国内镜像源_mob64ca12f10f72 的技术博客_51CTO 博客</a></p>
<p>继续之前的操作，构建 Web 程序镜像。</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><code class="hljs shell"><span class="hljs-meta prompt_">#</span><span class="language-bash">拉取Nginx镜像</span><br>sudo docker pull nginx:latest<br><span class="hljs-meta prompt_">#</span><span class="language-bash">创建Dockerfile设置Nginx作为基础镜像，并在Web服务器的根目录创建一个显示Hello World!的index.html文件。</span><br>sudo tee Dockerfile &lt;&lt;-&#x27;EOF&#x27;<br>FROM nginx:latest<br>RUN echo &#x27;Hello World!&#x27; &gt; /usr/share/nginx/html/index.html<br>EOF<br><span class="hljs-meta prompt_">#</span><span class="language-bash">构建镜像，镜像名称为hello-world</span><br>sudo docker build . -t hello-world:latest<br></code></pre></td></tr></table></figure>

<p>启动 Web 程序镜像的容器，并且命名容器名称为<code>hello-world</code>。</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs shell">sudo docker run -d -p 80:80 --name hello-world hello-world:latest<br></code></pre></td></tr></table></figure>

<p>执行<code>curl http://localhost</code>命令，验证 Web 程序是否正确显示<code>Hello World!</code>。</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs bash">[root@iZ2zehqnajgv7sc3i778n0Z ~]<span class="hljs-comment"># curl http://localhost</span><br>Hello World!<br></code></pre></td></tr></table></figure>

<p><strong>安装 Docker Compose</strong></p>
<p>如果您参考以上方式安装 Docker，那么 Compose 插件将默认安装到您的实例中。您可以通过如下命令查看。</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">sudo docker compose version<br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs bash">[root@iZ2zehqnajgv7sc3i778n0Z ~]<span class="hljs-comment"># sudo docker compose version</span><br>Docker Compose version v2.27.0<br></code></pre></td></tr></table></figure>

<p>预期输出（vN.N.N 代表 Compose 的版本）：<code>Docker Compose version vN.N.N</code>。</p>
<p>如果您的 Compose 插件未成功安装或您需要使用 Compose 独立版（<code>docker-compose</code>）可参考下面内容。</p>
<p><a target="_blank" rel="noopener" href="https://www.alibabacloud.com/help/zh/ecs/use-cases/install-and-use-docker#2cc5f8feac9ng">安装 Docker - 云服务器 ECS - 阿里云 (alibabacloud.com)</a></p>
<p>这些内容参考官方文档就可以了，最后还是要使用查看 Compose 版本命令，验证 Compose 是否安装成功。</p>
<p><strong>使用 Docker Compose 部署应用</strong></p>
<p>以下是创建基于 WordPress 镜像的 Web 程序。</p>
<p>创建 Compose 编排文件并启动 WordPress 服务。</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br></pre></td><td class="code"><pre><code class="hljs bash"><span class="hljs-comment">#创建编排文件，添加Mysql与WordPress</span><br>sudo <span class="hljs-built_in">tee</span> docker-compose.yaml &lt;&lt;-<span class="hljs-string">&#x27;EOF&#x27;</span><br>version: <span class="hljs-string">&#x27;3.1&#x27;</span><br><br>services:<br>  wordpress:<br>    image: wordpress<br>    restart: always<br>    ports:<br>      - <span class="hljs-string">&quot;80:80&quot;</span><br>    environment:<br>      <span class="hljs-comment">#数据库地址</span><br>      WORDPRESS_DB_HOST: db<br>      <span class="hljs-comment">#数据库用户名</span><br>      WORDPRESS_DB_USER: wordpress<br>      <span class="hljs-comment">#数据库密码</span><br>      WORDPRESS_DB_PASSWORD: 123456<br>      <span class="hljs-comment">#数据库名称</span><br>      WORDPRESS_DB_NAME: wordpress<br>    volumes:<br>      - wordpress:/var/www/html<br><br>  db:<br>    image: mysql:5.7<br>    restart: always<br>    ports:<br>      - <span class="hljs-string">&quot;3306:3306&quot;</span><br>    environment:<br>      <span class="hljs-comment">#数据库名称</span><br>      MYSQL_DATABASE: wordpress<br>      <span class="hljs-comment">#数据库用户名</span><br>      MYSQL_USER: wordpress<br>      <span class="hljs-comment">#数据库密码</span><br>      MYSQL_PASSWORD: 123456<br>      <span class="hljs-comment">#数据库ROOT用户密码</span><br>      MYSQL_RANDOM_ROOT_PASSWORD: <span class="hljs-string">&#x27;1&#x27;</span><br>    volumes:<br>      - db:/var/lib/mysql<br><br>volumes:<br>  wordpress:<br>  db:<br>EOF<br><span class="hljs-comment">#启动服务容器。</span><br>sudo <span class="hljs-built_in">env</span> <span class="hljs-string">&quot;PATH=<span class="hljs-variable">$PATH</span>&quot;</span> docker compose up -d<br></code></pre></td></tr></table></figure>

<p>这里启动服务器竟然有报错了，估计是服务端口冲突了，刚才在 80 端口启动了 Hello World 测试服务。</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><code class="hljs bash">[root@iZ2zehqnajgv7sc3i778n0Z ~]<span class="hljs-comment"># docker ps -a</span><br>CONTAINER ID   IMAGE                COMMAND                   CREATED              STATUS              PORTS                                                  NAMES<br>e9f71f7b68d5   wordpress            <span class="hljs-string">&quot;docker-entrypoint.s…&quot;</span>   About a minute ago   Created                                                                    root-wordpress-1<br>8c0aee8f6006   mysql:5.7            <span class="hljs-string">&quot;docker-entrypoint.s…&quot;</span>   About a minute ago   Up About a minute   0.0.0.0:3306-&gt;3306/tcp, :::3306-&gt;3306/tcp, 33060/tcp   root-db-1<br>e1b3d3f9f718   hello-world:latest   <span class="hljs-string">&quot;/docker-entrypoint.…&quot;</span>   11 minutes ago       Up 11 minutes       0.0.0.0:80-&gt;80/tcp, :::80-&gt;80/tcp                      hello-world<br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">[root@iZ2zehqnajgv7sc3i778n0Z ~]<span class="hljs-comment"># docker stop e1b3d3f9f718</span><br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">[root@iZ2zehqnajgv7sc3i778n0Z ~]<span class="hljs-comment"># docker rm hello-world</span><br></code></pre></td></tr></table></figure>

<p><a target="_blank" rel="noopener" href="http://47.93.135.62/">Memory’s Blog – 又一个 WordPress 站点</a></p>
<p>成功部署了 WordPress 个人博客站点，提供了很多热门的免费主题，直接下载安装完成后即可使用，这个博客确实方便，还配备了专门的后台管理系统。</p>
<p>Memos 镜像</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs bash"><span class="hljs-comment"># 直接拉取镜像</span><br>sudo docker pull usememos/memos:latest<br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><code class="hljs bash">sudo <span class="hljs-built_in">mkdir</span> -p /etc/docker<br>sudo <span class="hljs-built_in">tee</span> /etc/docker/daemon.json &lt;&lt;-<span class="hljs-string">&#x27;EOF&#x27;</span><br>&#123;<br>  <span class="hljs-string">&quot;registry-mirrors&quot;</span>: [<span class="hljs-string">&quot;https://0i6jgqxx.mirror.aliyuncs.com&quot;</span>]<br>&#125;<br>EOF<br>sudo systemctl daemon-reload<br>sudo systemctl restart docker<br></code></pre></td></tr></table></figure>

<p>一直显示拉取失败，阿里云镜像仓库没有同步 Memos 镜像吗。</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs bash">[root@iZ2zehqnajgv7sc3i778n0Z docker]<span class="hljs-comment"># sudo docker pull usememos/memos:latest</span><br>Error response from daemon: Get <span class="hljs-string">&quot;https://registry-1.docker.io/v2/&quot;</span>: context deadline exceeded<br></code></pre></td></tr></table></figure>

<p>使用终极解决方案： <strong>直接使用 GitHub 源码构建（终极方案）</strong>，如果镜像源均不可用，可自行构建。</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><code class="hljs bash"><span class="hljs-comment"># 克隆源码</span><br>git <span class="hljs-built_in">clone</span> https://github.com/usememos/memos.git<br><span class="hljs-built_in">cd</span> memos<br><br><span class="hljs-comment"># 构建镜像</span><br>docker build -t memos:latest .<br><br><span class="hljs-comment"># 运行容器</span><br>docker run -d --name memos -p 5230:5230 -v ~/.memos/:/var/opt/memos memos:latest<br></code></pre></td></tr></table></figure>

<p>在这之前，得先安装 git，执行安装，并验证安装。</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">sudo yum install -y git<br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">git --version<br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><code class="hljs bash">完毕！<br>[root@iZ2zehqnajgv7sc3i778n0Z docker]<span class="hljs-comment"># git --version</span><br>git version 2.43.5<br></code></pre></td></tr></table></figure>

<p>。。。</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><code class="hljs bash">[root@iZ2zehqnajgv7sc3i778n0Z docker]<span class="hljs-comment"># git clone https://github.com/usememos/memos.git</span><br>正克隆到 <span class="hljs-string">&#x27;memos&#x27;</span>...<br>致命错误：无法访问 <span class="hljs-string">&#x27;https://github.com/usememos/memos.git/&#x27;</span>：Failed to connect to github.com port 443: 连接超时<br></code></pre></td></tr></table></figure>

<p><a target="_blank" rel="noopener" href="https://github.com/usememos/memos">usememos/memos: A modern, open-source, self-hosted knowledge management and note-taking platform designed for privacy-conscious users and organizations. (github.com)</a></p>
<p>刚刚使用 SSH 协议替代 HTTPS 协议，在云服务器生成了密钥，并将公钥添加到了 GitHub，登录 GitHub → Settings → SSH and GPG keys → 添加公钥。</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs bash">ssh-keygen -t ed25519 -C <span class="hljs-string">&quot;your_email@example.com&quot;</span><br><span class="hljs-built_in">cat</span> ~/.ssh/id_ed25519.pub  <span class="hljs-comment"># 复制公钥</span><br></code></pre></td></tr></table></figure>

<p>但最终测试链接还是超时失败了。</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">ssh -T git@github.com<br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs bash">[root@iZ2zehqnajgv7sc3i778n0Z docker]<span class="hljs-comment"># ssh -T git@github.com</span><br>ssh: connect to host github.com port 22: Connection timed out<br></code></pre></td></tr></table></figure>

<p>索性在 Github Fork Memos 镜像仓库，再导入 Gitee 仓库，最后在 Gitee 添加服务器公钥实现认证，总该能成功拉取官方镜像源吧。</p>
<p>拉取 Gitee 镜像代码仓库。</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">git <span class="hljs-built_in">clone</span> git@gitee.com:deng-2022/memos.git<br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br></pre></td><td class="code"><pre><code class="hljs bash">[root@iZ2zehqnajgv7sc3i778n0Z docker]<span class="hljs-comment"># git clone git@gitee.com:deng-2022/memos.git</span><br>正克隆到 <span class="hljs-string">&#x27;memos&#x27;</span>...<br>The authenticity of host <span class="hljs-string">&#x27;gitee.com (180.76.199.13)&#x27;</span> can<span class="hljs-string">&#x27;t be established.</span><br><span class="hljs-string">ECDSA key fingerprint is SHA256:FQGC9Kn/eye1W8icdBgrQp+KkGYoFgbVr17bmjey0Wc.</span><br><span class="hljs-string">Are you sure you want to continue connecting (yes/no/[fingerprint])? y</span><br><span class="hljs-string">Please type &#x27;</span><span class="hljs-built_in">yes</span><span class="hljs-string">&#x27;, &#x27;</span>no<span class="hljs-string">&#x27; or the fingerprint: yes</span><br><span class="hljs-string">Warning: Permanently added &#x27;</span>gitee.com,180.76.199.13<span class="hljs-string">&#x27; (ECDSA) to the list of known hosts.</span><br><span class="hljs-string">remote: Enumerating objects: 42879, done.</span><br><span class="hljs-string">remote: Counting objects: 100% (42879/42879), done.</span><br><span class="hljs-string">remote: Compressing objects: 100% (9910/9910), done.</span><br><span class="hljs-string">remote: Total 42879 (delta 31416), reused 42879 (delta 31416), pack-reused 0 (from 0)</span><br><span class="hljs-string">接收对象中: 100% (42879/42879), 35.67 MiB | 9.95 MiB/s, 完成.</span><br><span class="hljs-string">处理 delta 中: 100% (31416/31416), 完成.</span><br></code></pre></td></tr></table></figure>

<p>继续未完成的操作，克隆源码成功后，自行构建镜像。</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><code class="hljs bash"><span class="hljs-comment"># 克隆源码</span><br>git <span class="hljs-built_in">clone</span> git@gitee.com:deng-2022/memos.git<br><span class="hljs-built_in">cd</span> memos/scripts<br><br><span class="hljs-comment"># 构建镜像</span><br>docker build -t memos:latest .<br><br><span class="hljs-comment"># 运行容器</span><br>docker run -d --name memos -p 5230:5230 -v ~/.memos/:/var/opt/memos memos:latest<br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs bash">sudo systemctl daemon-reload<br>sudo systemctl restart docker<br></code></pre></td></tr></table></figure>

<p>白忙活一场，到头来还是需要拉取基础镜像，镜像源修改还是没有生效，拉个镜像就连接超时。</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs bash">docker pull alpine:latest<br>docker pull golang:1.24-alpine<br></code></pre></td></tr></table></figure>

<figure class="highlight excel"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs excel">=&gt; [internal] load metadata for docker.io/library/gola<span class="hljs-symbol">ng:1</span>.<span class="hljs-number">24</span>-alpine<br></code></pre></td></tr></table></figure>

<p>问题还偏偏出现在这个破镜像上，手动下载吧。</p>
<hr>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/weixin_40612128/article/details/147478581">第八阶段【DBA 自动化】06：CentOS 安装 go 环境_golang 1.24.2 下载-CSDN 博客</a></p>
<figure class="highlight awk"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs awk">wget https:<span class="hljs-regexp">//g</span>olang.google.cn<span class="hljs-regexp">/dl/g</span>o1.<span class="hljs-number">24.2</span>.linux-amd64.tar.gz<br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><code class="hljs bash"><span class="hljs-comment"># 解压 Go 到 /usr/local</span><br>sudo tar -C /usr/local -xzf go1.24.2.linux-amd64.tar.gz<br><br><span class="hljs-comment"># 添加环境变量</span><br><span class="hljs-built_in">echo</span> <span class="hljs-string">&#x27;export PATH=$PATH:/usr/local/go/bin&#x27;</span> &gt;&gt; ~/.bashrc<br><span class="hljs-built_in">source</span> ~/.bashrc<br><br><span class="hljs-comment"># 验证安装</span><br>go version<br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><code class="hljs bash">[root@iZ2zehqnajgv7sc3i778n0Z scripts]<span class="hljs-comment"># sudo tar -C /usr/local -xzf go1.24.2.linux-amd64.tar.gz</span><br>[root@iZ2zehqnajgv7sc3i778n0Z scripts]<span class="hljs-comment"># echo &#x27;export PATH=$PATH:/usr/local/go/bin&#x27; &gt;&gt; ~/.bashrc</span><br>[root@iZ2zehqnajgv7sc3i778n0Z scripts]<span class="hljs-comment"># source ~/.bashrc</span><br>[root@iZ2zehqnajgv7sc3i778n0Z scripts]<span class="hljs-comment"># go version</span><br>go version go1.24.2 linux/amd64<br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br></pre></td><td class="code"><pre><code class="hljs bash">FROM golang:1.24-alpine AS backend<br>WORKDIR /backend-build<br>COPY go.mod go.sum ./<br>RUN go mod download<br>COPY . .<br><span class="hljs-comment"># Please build frontend first, so that the static files are available.</span><br><span class="hljs-comment"># Refer to `pnpm release` in package.json for the build command.</span><br>RUN --mount=<span class="hljs-built_in">type</span>=cache,target=/go/pkg/mod \<br>    --mount=<span class="hljs-built_in">type</span>=cache,target=/root/.cache/go-build \<br>    go build -ldflags=<span class="hljs-string">&quot;-s -w&quot;</span> -o memos ./bin/memos/main.go<br><br><span class="hljs-comment"># Make workspace with above generated files.</span><br>FROM alpine:latest AS monolithic<br>WORKDIR /usr/local/memos<br><br>RUN apk add --no-cache tzdata<br>ENV TZ=<span class="hljs-string">&quot;UTC&quot;</span><br><br>COPY --from=backend /backend-build/memos /usr/local/memos/<br>COPY ./scripts/entrypoint.sh /usr/local/memos/<br><br>EXPOSE 5230<br><br><span class="hljs-comment"># Directory to store the data, which can be referenced as the mounting point.</span><br>RUN <span class="hljs-built_in">mkdir</span> -p /var/opt/memos<br>VOLUME /var/opt/memos<br><br>ENV MEMOS_MODE=<span class="hljs-string">&quot;prod&quot;</span><br>ENV MEMOS_PORT=<span class="hljs-string">&quot;5230&quot;</span><br><br>ENTRYPOINT [<span class="hljs-string">&quot;./entrypoint.sh&quot;</span>, <span class="hljs-string">&quot;./memos&quot;</span>]<br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref 5e8c89a3-1927-49ae-bf7e-1543f565993f::reae01uls78mmnhox88ewtmd5: <span class="hljs-string">&quot;/scripts/entrypoint.sh&quot;</span>: not found<br></code></pre></td></tr></table></figure>

<p>不过是徒劳，擦。</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><code class="hljs bash">FROM alpine AS backend<br>WORKDIR /backend-build<br>RUN sed -i <span class="hljs-string">&#x27;s/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g&#x27;</span> /etc/apk/repositories<br><span class="hljs-comment"># 安装 Go（需自行处理版本和依赖）</span><br>RUN apk add --no-cache go gcc musl-dev  <span class="hljs-comment"># 安装 Go 和编译工具</span><br>COPY ./go.mod ./go.sum ./<br>RUN go mod download<br>COPY . .<br></code></pre></td></tr></table></figure>

<p>还是解决镜像源问题吧，一劳永逸，竟然浪费了两小时时间，还没有丝毫进展。</p>
<hr>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br></pre></td><td class="code"><pre><code class="hljs bash">[root@iZ2zehqnajgv7sc3i778n0Z docker]<span class="hljs-comment"># systemctl status docker.service</span><br>● docker.service - Docker Application Container Engine<br>   Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled)<br>   Active: failed (Result: exit-code) since Mon 2025-06-30 13:36:11 CST; 36s ago<br>     Docs: https://docs.docker.com<br>  Process: 476829 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE)<br> Main PID: 476829 (code=exited, status=1/FAILURE)<br><br>6月 30 13:36:09 iZ2zehqnajgv7sc3i778n0Z systemd[1]: Failed to start Docker Application Container Engine.<br>6月 30 13:36:11 iZ2zehqnajgv7sc3i778n0Z systemd[1]: docker.service: Service RestartSec=2s expired, scheduling restart.<br>6月 30 13:36:11 iZ2zehqnajgv7sc3i778n0Z systemd[1]: docker.service: Scheduled restart job, restart counter is at 3.<br>6月 30 13:36:11 iZ2zehqnajgv7sc3i778n0Z systemd[1]: Stopped Docker Application Container Engine.<br>6月 30 13:36:11 iZ2zehqnajgv7sc3i778n0Z systemd[1]: docker.service: Start request repeated too quickly.<br>6月 30 13:36:11 iZ2zehqnajgv7sc3i778n0Z systemd[1]: docker.service: Failed with result <span class="hljs-string">&#x27;exit-code&#x27;</span>.<br>6月 30 13:36:11 iZ2zehqnajgv7sc3i778n0Z systemd[1]: Failed to start Docker Application Container Engine.<br>6月 30 13:36:39 iZ2zehqnajgv7sc3i778n0Z systemd[1]: docker.service: Start request repeated too quickly.<br>6月 30 13:36:39 iZ2zehqnajgv7sc3i778n0Z systemd[1]: docker.service: Failed with result <span class="hljs-string">&#x27;exit-code&#x27;</span>.<br></code></pre></td></tr></table></figure>

<p>docker 服务都垮了。</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><code class="hljs bash">&#123;<br>  <span class="hljs-string">&quot;registry-mirrors&quot;</span>: [<span class="hljs-string">&quot;https://&lt;你的ID&gt;.mirror.aliyuncs.com&quot;</span>],<br>  <span class="hljs-string">&quot;registry-mirrors-only&quot;</span>: <span class="hljs-literal">true</span>  // 强制只从镜像加速器拉取<br>&#125;<br></code></pre></td></tr></table></figure>

<p>混账 AI 糊弄我呢，这文件就不能这么写。</p>
<p><a target="_blank" rel="noopener" href="https://developer.aliyun.com/article/1613645">Docker 安装及镜像源修改-阿里云开发者社区 (aliyun.com)</a></p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs bash">sudo systemctl daemon-reload<br>sudo systemctl restart docker<br></code></pre></td></tr></table></figure>

<p><a target="_blank" rel="noopener" href="https://developer.aliyun.com/article/1529158">docker 换国内镜像源，docker 换源-阿里云开发者社区 (aliyun.com)</a></p>
<p>折腾了一上午，快到中午两点整总算弄好了。</p>
<p>换镜像源就得按照这篇文章里写的，把以下国内镜像源挨个配置上去，这样直接执行拉取镜像就成功了。</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br></pre></td><td class="code"><pre><code class="hljs bash"><span class="hljs-built_in">echo</span> &gt;/etc/docker/daemon.json<br><span class="hljs-built_in">cat</span>&gt;/etc/docker/daemon.json &lt;&lt;<span class="hljs-string">END</span><br><span class="hljs-string">&#123;</span><br><span class="hljs-string">  &quot;registry-mirrors&quot;: [</span><br><span class="hljs-string">    &quot;https://hub-mirror.c.163.com&quot;,</span><br><span class="hljs-string">    &quot;https://ustc-edu-cn.mirror.aliyuncs.com&quot;,</span><br><span class="hljs-string">    &quot;https://ghcr.io&quot;,</span><br><span class="hljs-string">    &quot;https://mirror.baidubce.com&quot;</span><br><span class="hljs-string">  ]</span><br><span class="hljs-string">&#125;</span><br><span class="hljs-string">END</span><br>systemctl restart docker<br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">docker pull usememos/memos<br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br></pre></td><td class="code"><pre><code class="hljs bash">[root@iZ2zehqnajgv7sc3i778n0Z ~]<span class="hljs-comment"># docker pull usememos/memos</span><br>Using default tag: latest<br>latest: Pulling from usememos/memos<br>1f3e46996e29: Pull complete<br>3c6dabcaff14: Pull complete<br>066876855edf: Pull complete<br>12e6e904a51b: Pull complete<br>acc8f9c158a7: Pull complete<br>0ecac9b063ba: Pull complete<br>Digest: sha256:4723d86e6797fd629f1f2ff7afd4e37e669df7318f00de31c7ff9acf1fe9db7f<br>Status: Downloaded newer image <span class="hljs-keyword">for</span> usememos/memos:latest<br>docker.io/usememos/memos:latest<br></code></pre></td></tr></table></figure>

<p><a target="_blank" rel="noopener" href="https://juejin.cn/post/7520471519417499689">自建 Memos 服务：碎片化笔记 + 博客说说栏，一栈双用 Memos 是一款轻量的自托管的备忘录中心。你可以把它当作个 - 掘金 (juejin.cn)</a></p>
<p>直接用 docker compose 启动。</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><code class="hljs bash"><span class="hljs-comment"># 创建合适的数据持久化目录</span><br><span class="hljs-built_in">mkdir</span> -p /dockerData/memos<br><span class="hljs-comment"># 进入目录</span><br><span class="hljs-built_in">cd</span> /dockerData/memos<br><span class="hljs-comment"># 创建 docker-compose.yml</span><br><span class="hljs-built_in">touch</span> docker-compose.yml<br></code></pre></td></tr></table></figure>

<p>我的 docker-compose.yml 文件如下：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br></pre></td><td class="code"><pre><code class="hljs bash">services:<br>  memos:<br>    image: usememos/memos:latest<br>    container_name: memos<br>    restart: unless-stopped<br>    ports:<br>      - <span class="hljs-string">&quot;5230:5230&quot;</span><br>    volumes:<br>      - /dockerData/memos/data:/var/opt/memos<br>    environment:<br>      - MEMOS_MODE=prod<br>      - MEMOS_PORT=5230<br></code></pre></td></tr></table></figure>

<p>最后，启动 memos：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><code class="hljs bash"><span class="hljs-comment"># 拉取镜像</span><br>docker compose pull<br><span class="hljs-comment"># 启动</span><br>docker compose up -d<br></code></pre></td></tr></table></figure>

<p>现在，访问 <a target="_blank" rel="noopener" href="http://47.93.135.62:5230/">Memos</a>（<a target="_blank" rel="noopener" href="http://47.93.135.62:5230/%EF%BC%89">http://47.93.135.62:5230/）</a> 即可，注册登录，就可以发表留言了，这个备忘录很好用。</p>
<h1 id="融入-Hexo"><a href="#融入-Hexo" class="headerlink" title="融入 Hexo"></a>融入 Hexo</h1><blockquote>
<p>2025 年 6 月 30 日</p>
</blockquote>
<p><a target="_blank" rel="noopener" href="https://github.com/Mintimate/memos-bb-time">Mintimate/memos-bb-time: A Hexo plugin that integrates Memos’ API to add a Twitter-like ‘moments’ (shuoshuo) feature to your Hexo blog (github.com)</a></p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><code class="hljs bash">&lt;script <span class="hljs-built_in">type</span>=<span class="hljs-string">&quot;text/javascript&quot;</span>&gt;<br>  var bbMemos = &#123;<br>    memos : <span class="hljs-string">&#x27;http://47.93.135.62:5230/&#x27;</span>, //修改为自己部署 Memos 的网址，末尾有 / 斜杠<br>    <span class="hljs-built_in">limit</span> : <span class="hljs-string">&#x27;10&#x27;</span>,//默认每次显示 10 条<br>    creatorId:<span class="hljs-string">&#x27;1&#x27;</span> ,//早期默认为 101 用户，新安装是 1； https://demo.usememos.com/u/101<br>    domId: <span class="hljs-string">&#x27;#bber&#x27;</span>,//默认为 bber<br>  &#125;<br>&lt;/script&gt;<br></code></pre></td></tr></table></figure>

<figure class="highlight sas"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs sas">- &#123; <span class="hljs-keyword">key</span>: <span class="hljs-string">&quot;说说&quot;</span>, <span class="hljs-keyword">link</span>: <span class="hljs-string">&quot;/Memos/&quot;</span>, icon: <span class="hljs-string">&quot;iconfont icon-comment &quot;</span> &#125;<br></code></pre></td></tr></table></figure>

<p><a target="_blank" rel="noopener" href="https://www.iconfont.cn/">iconfont-阿里巴巴矢量图标库</a></p>
<p>在 Hexo 博客中创建一个独立页面，通过 Memos API 展示说说内容。</p>
<p><strong>功能说明</strong></p>
<ul>
<li>创建独立说说页面，不依赖插件</li>
<li>通过 Memos API 获取最新内容</li>
<li>响应式设计，适配各种设备</li>
</ul>
<ol>
<li>创建新页面：</li>
</ol>
<p>下载 <code>source</code> 目录，将内部的文件全部复制到 Hexo 博客的 <code>source</code> 目录下。</p>
<ol>
<li>编辑生成的 <code>source/Memos/index.md</code> 文件：</li>
</ol>
<figure class="highlight markdown"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><code class="hljs markdown">var bbMemos = &#123;<br>memos : &#x27;&#x27;,//修改为自己部署 Memos 的网址，末尾有 / 斜杠<br>limit : &#x27;10&#x27;,//默认每次显示 10 条<br>creatorId:&#x27;1&#x27; ,//早期默认为 101 用户，新安装是 1； https://demo.usememos.com/u/101<br>domId: &#x27;#bber&#x27;,//默认为 bber<br>&#125;<br></code></pre></td></tr></table></figure>

<ol>
<li>编辑主题配置文件：</li>
</ol>
<p>编辑主题配置文件，添加导航内容。以 fluid 主题为例，编辑<code>_config.fluid.yml</code>内<code>menu</code>部分：</p>
<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br></pre></td><td class="code"><pre><code class="hljs yaml"><span class="hljs-attr">menu:</span><br>  <span class="hljs-bullet">-</span> &#123; <span class="hljs-attr">key:</span> <span class="hljs-string">&quot;home&quot;</span>, <span class="hljs-attr">link:</span> <span class="hljs-string">&quot;/&quot;</span>, <span class="hljs-attr">icon:</span> <span class="hljs-string">&quot;iconfont icon-home-fill&quot;</span> &#125;<br>  <span class="hljs-bullet">-</span> &#123; <span class="hljs-attr">key:</span> <span class="hljs-string">&quot;archive&quot;</span>, <span class="hljs-attr">link:</span> <span class="hljs-string">&quot;/archives/&quot;</span>, <span class="hljs-attr">icon:</span> <span class="hljs-string">&quot;iconfont icon-archive-fill&quot;</span> &#125;<br>  <span class="hljs-bullet">-</span> &#123;<br>      <span class="hljs-attr">key:</span> <span class="hljs-string">&quot;category&quot;</span>,<br>      <span class="hljs-attr">link:</span> <span class="hljs-string">&quot;/categories/&quot;</span>,<br>      <span class="hljs-attr">icon:</span> <span class="hljs-string">&quot;iconfont icon-category-fill&quot;</span>,<br>    &#125;<br>  <span class="hljs-bullet">-</span> &#123; <span class="hljs-attr">key:</span> <span class="hljs-string">&quot;tag&quot;</span>, <span class="hljs-attr">link:</span> <span class="hljs-string">&quot;/tags/&quot;</span>, <span class="hljs-attr">icon:</span> <span class="hljs-string">&quot;iconfont icon-tags-fill&quot;</span> &#125;<br>  <span class="hljs-bullet">-</span> &#123; <span class="hljs-attr">key:</span> <span class="hljs-string">&quot;links&quot;</span>, <span class="hljs-attr">link:</span> <span class="hljs-string">&quot;/links/&quot;</span>, <span class="hljs-attr">icon:</span> <span class="hljs-string">&quot;iconfont icon-link-fill&quot;</span> &#125;<br>  <span class="hljs-bullet">-</span> &#123; <span class="hljs-attr">key:</span> <span class="hljs-string">&quot;about&quot;</span>, <span class="hljs-attr">link:</span> <span class="hljs-string">&quot;/about/&quot;</span>, <span class="hljs-attr">icon:</span> <span class="hljs-string">&quot;iconfont icon-user-fill&quot;</span> &#125;<br>  <span class="hljs-bullet">-</span> &#123; <span class="hljs-attr">key:</span> <span class="hljs-string">&quot;意马&quot;</span>, <span class="hljs-attr">link:</span> <span class="hljs-string">&quot;/Memos/&quot;</span>, <span class="hljs-attr">icon:</span> <span class="hljs-string">&quot;iconfont iconbg-chat&quot;</span> &#125; <span class="hljs-comment"># 添加说说页面</span><br>  <span class="hljs-bullet">-</span> &#123;<br>      <span class="hljs-attr">key:</span> <span class="hljs-string">&quot;发现&quot;</span>,<br>      <span class="hljs-attr">icon:</span> <span class="hljs-string">&quot;iconfont iconnaicha&quot;</span>,<br>      <span class="hljs-attr">submenu:</span><br>        [<br>          &#123;<br>            <span class="hljs-attr">key:</span> <span class="hljs-string">&quot;哔哩哔哩&quot;</span>,<br>            <span class="hljs-attr">link:</span> <span class="hljs-string">&quot;https://space.bilibili.com/355567627&quot;</span>,<br>            <span class="hljs-attr">icon:</span> <span class="hljs-string">&quot;iconfont iconbilibili&quot;</span>,<br>          &#125;,<br>          &#123;<br>            <span class="hljs-attr">key:</span> <span class="hljs-string">&quot;Youtube&quot;</span>,<br>            <span class="hljs-attr">link:</span> <span class="hljs-string">&quot;https://www.youtube.com/@mintimate&quot;</span>,<br>            <span class="hljs-attr">icon:</span> <span class="hljs-string">&quot;iconfont iconyoutube&quot;</span>,<br>          &#125;,<br>          &#123;<br>            <span class="hljs-attr">key:</span> <span class="hljs-string">&quot;Github&quot;</span>,<br>            <span class="hljs-attr">link:</span> <span class="hljs-string">&quot;https://github.com/Mintimate&quot;</span>,<br>            <span class="hljs-attr">icon:</span> <span class="hljs-string">&quot;iconfont icongit&quot;</span>,<br>          &#125;,<br>        ],<br>    &#125;<br></code></pre></td></tr></table></figure>

<p>重启 Hexo 服务，访问 <code>http://localhost:4000/Memos/</code> 即可查看效果。</p>
<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br></pre></td><td class="code"><pre><code class="hljs yaml"><span class="hljs-meta">---</span><br><span class="hljs-comment">#---------------------------</span><br><span class="hljs-comment"># 音乐餐厅</span><br><span class="hljs-comment"># playlist Page</span><br><span class="hljs-comment">#</span><br><span class="hljs-comment"># 通过 hexo new page 命令创建的页面</span><br><span class="hljs-comment"># playlist Page through `hexo new page`</span><br><span class="hljs-comment">#---------------------------</span><br><span class="hljs-string">音乐:</span><br>  <span class="hljs-attr">banner_img:</span> <span class="hljs-string">/img/newBG/girl20250517.jpg</span><br>  <span class="hljs-attr">banner_img_height:</span> <span class="hljs-number">100</span><br>  <span class="hljs-attr">banner_mask_alpha:</span> <span class="hljs-number">0.3</span><br></code></pre></td></tr></table></figure>

<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br></pre></td><td class="code"><pre><code class="hljs yaml"><span class="hljs-meta">---</span><br><span class="hljs-comment">#---------------------------</span><br><span class="hljs-comment"># 说说</span><br><span class="hljs-comment"># Custom Page</span><br><span class="hljs-comment">#</span><br><span class="hljs-comment"># 通过 hexo new page 命令创建的页面</span><br><span class="hljs-comment"># Custom Page through `hexo new page`</span><br><span class="hljs-comment">#---------------------------</span><br><span class="hljs-string">说说:</span><br>  <span class="hljs-attr">banner_img:</span> <span class="hljs-string">/img/newBG/bus20250517.jpg</span><br>  <span class="hljs-attr">banner_img_height:</span> <span class="hljs-number">100</span><br>  <span class="hljs-attr">banner_mask_alpha:</span> <span class="hljs-number">0.3</span><br></code></pre></td></tr></table></figure>

<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs yaml"><span class="hljs-bullet">-</span> &#123; <span class="hljs-attr">key:</span> <span class="hljs-string">&quot;音乐&quot;</span>, <span class="hljs-attr">link:</span> <span class="hljs-string">&quot;/playlist/&quot;</span>, <span class="hljs-attr">icon:</span> <span class="hljs-string">&quot;iconfont icon-music&quot;</span> &#125;<br><span class="hljs-bullet">-</span> &#123; <span class="hljs-attr">key:</span> <span class="hljs-string">&quot;说说&quot;</span>, <span class="hljs-attr">link:</span> <span class="hljs-string">&quot;/memos/&quot;</span>, <span class="hljs-attr">icon:</span> <span class="hljs-string">&quot;iconfont icon-comment &quot;</span> &#125;<br></code></pre></td></tr></table></figure>

<p>这样自定义页面完成以后，个人博客“说说”栏目页新增完毕。</p>
<p>成功将 Memos 备忘录功能融入 Hexo。</p>
<p>在线访问地址：<a target="_blank" rel="noopener" href="http://47.93.135.62:5230/">Memos</a></p>

                
              </div>
            
            <hr/>
            <div>
              <!-- 文章页面 - 底部标签 -->
<div class="post-metas my-3">
  
  <div class="post-meta mr-3 d-flex align-items-center">
    <i class="iconfont icon-category"></i>
    <!-- 归档页 - 文章列表 -->


<span class="category-chains">
  
  
    
      <span class="category-chain">
        
  <a href="/blog/categories/%E6%97%A7%E6%A2%A6%E8%BD%BB%E6%8B%BE/" class="category-chain-item">旧梦轻拾</a>
  
  

      </span>
    
  
</span>

  </div>
   
  <div class="post-meta">
    <i class="iconfont icon-tags"></i>
    
    <a href="/blog/tags/%E5%9B%9E%E5%BF%86/">#回忆</a>
    
    <a href="/blog/tags/%E7%9B%B8%E5%86%8C/">#相册</a>
    
  </div>
  
</div>


              <!-- 文章页面 - 底部标签下方 -->

  
  <div class="license-box my-3">
    <div class="license-title">
      <div>溯源计划：给时光以备份，而非给备份以时光</div>
      <div>https://test.atomgit.net/blog/2025/05/27/溯源计划：给时光以备份，而非给备份以时光/</div>
    </div>
    <div class="license-meta">
      
        <div class="license-meta-item">
          <div>作者</div>
          <div>Memory</div>
        </div>
      
      
        <div class="license-meta-item license-meta-date">
          <div>发布于</div>
          <div>2025年5月27日</div>
        </div>
      
      
        <div class="license-meta-item license-meta-date">
          <div>更新于</div>
          <div>2025年7月6日</div>
        </div>
      
      
        <div class="license-meta-item">
          <div>许可协议</div>
          <div>
            
              
              
                <a target="_blank" href="https://creativecommons.org/licenses/by/4.0/">
                  <span class="hint--top hint--rounded" aria-label="BY - 署名">
                    <i class="iconfont icon-by"></i>
                  </span>
                </a>
              
            
          </div>
        </div>
      
    </div>
    <div class="license-icon iconfont"></div>
  </div>



              
                <div class="post-prevnext my-3">
                  <article class="post-prev col-6">
                    
                    
                      <a href="/blog/2025/07/03/%E5%83%8F%E7%B4%A0%E5%90%AF%E8%88%AA%EF%BC%9A%E5%9C%A8%E5%83%8F%E7%B4%A0%E4%B8%8E%E6%A2%A6%E6%83%B3%E4%B9%8B%E9%97%B4%E9%93%BA%E7%AC%AC%E4%B8%80%E5%9D%97%E7%A0%96/" title="像素启航：在像素与梦想之间铺第一块砖">
                        <i class="iconfont icon-arrowleft"></i>
                        <span class="hidden-mobile">像素启航：在像素与梦想之间铺第一块砖</span>
                        <span class="visible-mobile">上一篇</span>
                      </a>
                    
                  </article>
                  <article class="post-next col-6">
                    
                    
                      <a href="/blog/2025/04/24/%E9%A1%B9%E7%9B%AE%E5%BF%97%E5%BD%95%EF%BC%9AMemory%20%E9%9D%A2%E8%AF%95%E5%88%B7%E9%A2%98%E5%B9%B3%E5%8F%B0%E5%BC%80%E5%8F%91%E6%96%87%E6%A1%A3/" title="项目志录：Memory 面试刷题平台开发文档">
                        <span class="hidden-mobile">项目志录：Memory 面试刷题平台开发文档</span>
                        <span class="visible-mobile">下一篇</span>
                        <i class="iconfont icon-arrowright"></i>
                      </a>
                    
                  </article>
                </div>
              
            </div>

            <!-- 文章页 - 评论上方 -->

  
  
    <article id="comments">
      
  <div id="valine"></div>
  <script type="text/javascript">
    Fluid.utils.loadComments('#valine', function() {
      Fluid.utils.createScript('https://cdn.jsdelivr.net/gh/HCLonely/Valine@latest/dist/Valine.min.js', function() {
        var options = Object.assign(
          {"appId":"T1hUHH9Ks1ggG9DBE3HgUPpV-gzGzoHsz","appKey":"XFkgzzvzNo3J3uNCbBiSOFKc","path":"window.location.pathname","placeholder":"填取QQ号和邮箱后评论，支持读取头像及消息提醒，留下点什么叭... ᶘ ᵒᴥᵒᶅ","avatar":"Gravatar","meta":["nick","mail","link"],"requiredFields":[],"pageSize":10,"lang":"zh-CN","highlight":true,"recordIP":false,"serverURLs":"https://t1huhh9k.lc-cn-n1-shared.com","emojiCDN":null,"emojiMaps":null,"enableQQ":true,"master":"8c9b6d6637904da62d74d019cc6982de","friends":"0188229a9cfc284176ea9135cb9514cc","visitor":true},
          {
            el: "#valine",
            path: window.location.pathname,
            app_id: "",
            app_key: "",
            placeholder: "填取QQ号和邮箱后评论，支持读取头像及消息提醒，留下点什么叭... ᶘ ᵒᴥᵒᶅ",
            avatar: "Gravatar",
            meta: ["nick","mail","link"],
            pageSize: "10",
            lang: "zh-CN",
            highlight: true,
            recordIP: false,
            serverURLs: "https://t1huhh9k.lc-cn-n1-shared.com",

            // 设置Bilibili表情包地址
            emojiCDN: '//i0.hdslb.com/bfs/emote/', 
            // 表情title和图片映射
            emojiMaps: {
                "tv_白眼": "48f75163437445665a9be80bb316e4cb252c5415.gif@48w_48h.webp",
                "tv_doge": "302d6c88c63ed162c81a49cafe7ed2709e6fb955.gif@48w_48h.webp",
                "tv_坏笑": "5d2572efd09aab5dde9e2a198bb3f9ac1e2a982e.gif@48w_48h.webp",
                "tv_难过": "9c6b41008a67755410f712334c64313df5f91b3f.gif@48w_48h.webp",
                "tv_生气": "1902a5a2df5b5c931d88c12f0feb264b1e109d0d.gif@48w_48h.webp",
                "tv_委屈": "af5a5853edb43a8178a8cb5df707fa5e88143699.gif@48w_48h.webp",
                "tv_斜眼笑": "c66568b471192ca1f62f6ed4384dc1b283ab7508.gif@48w_48h.webp",
                "tv_呆": "d3fa91e4db9215eb1e20ab9da44f1214aa4bda7b.gif@48w_48h.webp",
                "tv_发怒": "3959eb81b952e4fa8d269d98f9e3639172d84073.gif@48w_48h.webp",
                "tv_呕吐": "db58e9442aae26694af18cc1683607cca3a16763.gif@48w_48h.webp",
                "tv_思考": "b63f9146bfd985af014f8d6d4bdb498805be48f9.gif@48w_48h.webp",
                "tv_微笑": "b98656855d782f61cb8edc7f7fca6563ecafff7e.gif@48w_48h.webp",
                "tv_疑问": "fce1b1a0f3b0e39a2dc16a18508dba7b91e929f4.gif@48w_48h.webp",
                "tv_大哭": "cba61f05f3039b02a7ffc0dfcd9d7995df9fdd74.gif@48w_48h.webp",
                "tv_鼓掌": "be106e6b265883a9f28fbe10f7b765701e2618d4.gif@48w_48h.webp",
                "tv_抠鼻": "696d9f93e722144dc2a78aeffc569418fdf3d565.gif@48w_48h.webp",
                "tv_亲亲": "3534ea44ab74bd20352b88c245a06c4b4c46d271.gif@48w_48h.webp",
                "tv_调皮": "fcd967395fd14e4dd5829fa7e8a967ce23205e52.gif@48w_48h.webp",
                "tv_笑哭": "1c2fd1e8c9dde12812f86e5d4cbddd8993d98082.gif@48w_48h.webp",
                "tv_晕": "030040ec5c9ddc9e3d067658c4139e7314ab42f8.gif@48w_48h.webp",
                "tv_点赞": "30ecff401245fb56bcc1cf588d1809ac1ab1607c.gif@48w_48h.webp",
                "tv_害羞": "411a3e459e8580f5bfd9f639a408247c4b509935.gif@48w_48h.webp",
                "tv_睡着": "3c8b5e293261287a6203597e29b3de07df4d18c6.gif@48w_48h.webp",
                "tv_色": "a0c6d99ab0ab63b8648f5283ff72cec04b604828.gif@48w_48h.webp",
                "tv_吐血": "e17e4539e169d14a3389ff147afea760cebe5de5.gif@48w_48h.webp",
                "tv_无奈": "eb4cb5f07cfd177c7e6a7914316717e56d9cc1d0.gif@48w_48h.webp",
                "tv_再见": "344f61609ecce2008520dc8a977b6169215748a9.gif@48w_48h.webp",
                "tv_流汗": "390bccec65eaff536bd5bb2a0c5b8b0bdea47334.gif@48w_48h.webp",
                "tv_偷笑": "7f11e6f7f63e79112b833bd41fa13a83d7cd8474.gif@48w_48h.webp",
                "tv_抓狂":"a476b93ecd8e94ac3257323fd822f91cef212de2.gif@48w_48h.webp",
                "tv_黑人问号":"b609adf664be33224a9923262031165ae3e34cd2.gif@48w_48h.webp",
                "tv_困":"91c2bf34ecf842d7016c01d841db3d4074bd281f.gif@48w_48h.webp",
                "tv_打脸":"b0fad4856e59c1240e448437da3287bb5ce547e5.gif@48w_48h.webp",
                "tv_闭嘴":"a3fc5388b09e945be3f18fe23bfed5874a0285b7.gif@48w_48h.webp",
                "tv_鄙视":"293b5d459e6264ecf314d20937a936fa672ccd1e.gif@48w_48h.webp",
                "tv_腼腆":"30984e8264324f901d19bea85dada7103b695534.gif@48w_48h.webp",
                "tv_馋":"2525c5703c594e5f0752f68db8948773caebde47.gif@48w_48h.webp",
                "tv_可爱":"f92d20f76258bc5f33fc9d7c5e2a1d41fef19a7c.gif@48w_48h.webp",
                "tv_发财":"76131e52c9b033681b4c896c6024d29ef7ec7ec2.gif@48w_48h.webp",
                "tv_生病":"beb94829fe04f1a41bd6ca611e1f6ca9ca169afa.gif@48w_48h.webp",
                "tv_流鼻血":"8ef473f74a849420da712487b2f56ecca1f695f5.gif@48w_48h.webp",
                "tv_尴尬":"e0b84ef5ee3e5b8978e584c7c5a6550c51d15f84.gif@48w_48h.webp",
                "tv_大佬":"14ca0c05382b8741940942b2430b7a8d55c02f7e.gif@48w_48h.webp",
                "tv_流泪":"7e71cde7858f0cd50d74b0264aa26db612a8a167.png@48w_48h.webp",
                "tv_冷漠":"b9cbc755c2b3ee43be07ca13de84e5b699a3f101.png@48w_48h.webp",
                "tv_皱眉":"72ccad6679fea0d14cce648b4d818e09b8ffea2d.png@48w_48h.webp",
                "tv_鬼脸":"0ffbbddf8a94d124ca2f54b360bbc04feb6bbfea.png@48w_48h.webp",
                "tv_调侃":"4bc022533ef31544ca0d72c12c808cf4a1cce3e3.png@48w_48h.webp",
                "tv_目瞪口呆":"0b8cb81a68de5d5365212c99375e7ace3e7891b7.png@48w_48h.webp",
            },

            master: "8c9b6d6637904da62d74d019cc6982de",
            friends: "0188229a9cfc284176ea9135cb9514cc",
            tagMeta: ["博主","友人","访客"],
            visitor: true // 阅读量统计
          }
        )
        new Valine(options);
        Fluid.utils.waitElementVisible('#valine .vcontent', () => {
          var imgSelector = '#valine .vcontent img:not(.vemoji)';
          Fluid.plugins.imageCaption(imgSelector);
          Fluid.plugins.fancyBox(imgSelector);
        })
      });
    });
  </script>
  <noscript>Please enable JavaScript to view the comments</noscript>


    </article>
  


          </article>
        </div>
      </div>
    </div>

    <div class="side-col d-none d-lg-block col-lg-2">
      <!-- 文章页面 - 右侧目录 -->

  <aside class="sidebar" style="margin-left: -1rem">
    <!-- 文章页面 - 右侧目录上方 -->
<div id="toc">
  <p class="toc-header">
    <i class="iconfont icon-list"></i>
    <span>目录</span>
  </p>
  <div class="toc-body" id="toc-body"></div>
</div>



  </aside>



    </div>
  </div>
</div>





  



  



  



  



  







    

    
      <a id="scroll-top-button" aria-label="TOP" href="#" role="button">
        <i class="iconfont icon-arrowup" aria-hidden="true"></i>
      </a>
    

    
      <!-- 博客 - 搜索框 -->
<div
  class="modal fade"
  id="modalSearch"
  tabindex="-1"
  role="dialog"
  aria-labelledby="ModalLabel"
  aria-hidden="true"
>
  <div class="modal-dialog modal-dialog-scrollable modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header text-center">
        <h4 class="modal-title w-100 font-weight-bold">
          搜索
        </h4>
        <button
          type="button"
          id="local-search-close"
          class="close"
          data-dismiss="modal"
          aria-label="Close"
        >
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body mx-3">
        <div class="md-form mb-5">
          <input
            type="text"
            id="local-search-input"
            class="form-control validate"
          />
          <label data-error="x" data-success="v" for="local-search-input"
            >关键词</label
          >
        </div>
        <div class="list-group" id="local-search-result"></div>
      </div>
    </div>
  </div>
</div>

    

    
        <div class="modal fade" id="modalNotice" tabindex="-1" role="dialog" aria-hidden="true"
     style="font-family: 'Ma Shan Zheng', cursive; color: #ffffff;">
    <div class="modal-dialog modal-dialog-scrollable" role="document"
         style="font-family: 'Ma Shan Zheng', cursive;">
        <div class="modal-content" style="border-radius: 6px;">
            <!-- 公告头部 - 响应式设计 -->
            <div class="modal-header text-center"
                 style="padding: 1rem 1.5rem;border-bottom: 1px solid rgba(255,255,255,0.2)">
                <h4 class="modal-title w-100 font-weight-bold"
                    style="font-family: 'Microsoft YaHei', sans-serif;letter-spacing: 1px;text-shadow: 1px 1px 2px rgba(0,0,0,0.2);color: #ffffff;
                           font-size: 1.5rem; /* 默认PC端大小 */
                           /* 移动端适配 */
                           @media (max-width: 768px) {
                               font-size: 1.2rem;
                           }">
                    <div class="notice-title">
                        <i class="fas fa-bullhorn mr-2"> 围栏告示</i>
                    </div>
                    <small style="display: block; font-family: 'STKaiti', serif; font-size: 0.6em; color: #a0a0a0; margin-top: 3px;">
                        旧梦轻拾 · 谨识
                    </small>
                </h4>
            </div>

            <!-- 公告内容区 - 响应式设计 -->
            <div class="modal-body"
                 style="padding: 2rem; /* PC端 */
                        max-height: 70vh;
                        overflow-y: auto;
                        /* 移动端适配 */
                        @media (max-width: 768px) {
                            padding: 1rem;
                            max-height: 60vh;
                        }">
                <!-- 图片容器（响应式设计） -->
                <!--                <div class="announcement-hero"-->
                <!--                     style="margin-bottom: 2rem; /* PC端 */-->
                <!--                            /* 移动端适配 */-->
                <!--                            @media (max-width: 768px) {-->
                <!--                                margin-bottom: 1rem;-->
                <!--                            }">-->
                <!--                    <img src="http://blog.memory-life.icu/%E3%80%90%E5%93%B2%E9%A3%8E%E5%A3%81%E7%BA%B8%E3%80%91%E5%8A%A8%E6%BC%AB-%E5%A4%95%E9%98%B3%E9%93%81%E8%BD%A8.jpg"-->
                <!--                         alt="时光溯洄题图"-->
                <!--                         style="width: 100%; -->
                <!--                                max-height: 400px; /* PC端 */-->
                <!--                                object-fit: cover;-->
                <!--                                border-radius: 4px; -->
                <!--                                box-shadow: 0 2px 12px rgba(0,0,0,0.1);-->
                <!--                                /* 移动端适配 */-->
                <!--                                @media (max-width: 768px) {-->
                <!--                                    max-height: 30vh;-->
                <!--                                }"-->
                <!--                         loading="lazy">-->
                <!--                </div>-->

                <!-- 静态公告列表 - 响应式设计 -->
                <div class="announcement-list">
                    <div class="announcement-item"
                         style="margin-bottom: 2rem; /* PC端 */
                                padding: 2rem;
                                background: rgba(255,255,255,0.05);
                                border-radius: 8px;
                                /* 移动端适配 */
                                @media (max-width: 768px) {
                                    margin-bottom: 1rem;
                                    padding: 1rem;
                                }">
                        <h2 style="color: #d38532;
                                  font-weight: 600;
                                  font-size: 1.5rem; /* PC端 */
                                  margin-bottom: 1.2rem;
                                  letter-spacing: 0.5px;
                                  /* 移动端适配 */
                                  @media (max-width: 768px) {
                                      font-size: 1.2rem;
                                      margin-bottom: 1rem;
                                  }">
                            <i class="fas fa-calendar-check mr-2"></i>时光溯洄
                            <small style="display: block; font-size: 0.6em; color: #b8b8b8;text-align: right;">——
                                晨昏往事</small>
                        </h2>
                        <div style="color: #e0e0e0;
                                  line-height: 1.8; /* PC端 */
                                  font-size: 1.05rem;
                                  letter-spacing: 0.3px;
                                  /* 移动端适配 */
                                  @media (max-width: 768px) {
                                      line-height: 1.6;
                                      font-size: 0.95rem;
                                  }">
                            <!-- 内容保持不变 -->
                            <p style="margin-bottom: 1rem; text-indent: 2em;">你好。</p>
                            <!-- 其余段落内容... -->
                            <p style="margin-bottom: 1rem; text-indent: 2em;">
                                建站后的第813天，在百忙之中总算又能抽出时间来，对整个博客站点功能做整体的规划及优化完善。</p>
                            <p style="margin-bottom: 1rem; text-indent: 2em;">
                                在刚刚过去的几年时间里，往事皆以笔墨挥毫于时光素笺之上，数百天如一日，故事的书写从未间断过。</p>
                            <p style="margin-bottom: 1rem; text-indent: 2em; font-style: italic; color: #b8b8b8;">
                                时光悠悠，日月如流，过往的蹉跎岁月总在不经意间在心间回眸。</p>
                            <p style="margin-bottom: 1rem; text-indent: 2em; font-weight: 500; color: #ffffff;">
                                俯仰之间，轻舟已过万重山。</p>
                            <p style="margin-bottom: 1rem; text-indent: 2em; font-weight: 500; color: #ffffff;">
                                蹉跎之处，往事皆成云烟散。</p>
                            <p style="margin-bottom: 1rem; text-indent: 2em;">
                                这几年的时光过得太快了，好像过去这段岁月里的所有事情都发生在一瞬间。</p>
                            <p style="margin-bottom: 1rem; text-indent: 2em;">
                                这几年的时光同样太久了，久到那些时日里仿佛囊括了自己的整个前半生。</p>
                            <p style="margin-bottom: 0; text-align: right; font-size: 0.95rem; color: #a0a0a0;">——
                                八百余个昼夜，当时只道是地久天长，如今回望，不过浮光掠影间的一瞬。</p>
                        </div>
                    </div>

                    <!-- 第二个公告项 - 响应式设计 -->
                    <div class="announcement-item"
                         style="margin-bottom: 2rem; /* PC端 */
                                padding: 2rem;
                                background: rgba(255,255,255,0.05);
                                border-radius: 8px;
                                /* 移动端适配 */
                                @media (max-width: 768px) {
                                    margin-bottom: 1rem;
                                    padding: 1rem;
                                }">
                        <h2 style="color: #6cc70b;
                                  font-weight: 600;
                                  font-size: 1.5rem; /* PC端 */
                                  margin-bottom: 1.2rem;
                                  letter-spacing: 0.5px;
                                  /* 移动端适配 */
                                  @media (max-width: 768px) {
                                      font-size: 1.2rem;
                                      margin-bottom: 1rem;
                                  }">
                            <i class="fas fa-book-open mr-2"></i>墨痕新注
                            <small style="display: block; font-size: 0.6em; color: #b8b8b8;text-align: right;">——
                                待起之章</small>
                        </h2>
                        <div style="color: #e0e0e0;
                                  line-height: 1.8; /* PC端 */
                                  font-size: 1.05rem;
                                  letter-spacing: 0.3px;
                                  /* 移动端适配 */
                                  @media (max-width: 768px) {
                                      line-height: 1.6;
                                      font-size: 0.95rem;
                                  }">
                            <!-- 列表内容 - 响应式设计 -->
                            <ul style="padding-left: 1.8rem; /* PC端 */
                                      margin-bottom: 1.5rem;
                                      /* 移动端适配 */
                                      @media (max-width: 768px) {
                                          padding-left: 1.5rem;
                                          margin-bottom: 1.2rem;
                                      }">
                                <li style="margin-bottom: 0.8rem; /* PC端 */
                                         position: relative;
                                         list-style-type: none;
                                         /* 移动端适配 */
                                         @media (max-width: 768px) {
                                             margin-bottom: 0.6rem;
                                         }">
                                    <span style="position: absolute;
                                               left: -1.8rem; /* PC端 */
                                               color: #6cc70b;
                                               /* 移动端适配 */
                                               @media (max-width: 768px) {
                                                   left: -1.5rem;
                                               }">◆</span>
                                    <span style="font-weight: bolder;">溯源计划：</span>新增博文"溯源计划"，旨在用先进的数字技术留住过去的旧时光，让家族的记忆在数字云端生长发芽，全站博文数量已达90+。
                                </li>
                                <li style="margin-bottom: 0.8rem; /* PC端 */
                                         position: relative;
                                         list-style-type: none;
                                         /* 移动端适配 */
                                         @media (max-width: 768px) {
                                             margin-bottom: 0.6rem;
                                         }">
                                    <span style="position: absolute;
                                               left: -1.8rem; /* PC端 */
                                               color: #6cc70b;
                                               /* 移动端适配 */
                                               @media (max-width: 768px) {
                                                   left: -1.5rem;
                                               }">◆</span>
                                    <span style="font-weight: bolder;">围栏告示：</span>自去年夏天站点新增了“评论回复”功能后，至今时隔十余月，在芒种前夕本站久违地上线“围栏告示”功能，本公告栏会不定时更新，持续跟进记录最新站点功能调整日志，更多精彩内容请敬请期待。
                                </li>
                                <li style="margin-bottom: 0.8rem; /* PC端 */
                                         position: relative;
                                         list-style-type: none;
                                         /* 移动端适配 */
                                         @media (max-width: 768px) {
                                             margin-bottom: 0.6rem;
                                         }">
                                    <span style="position: absolute;
                                               left: -1.8rem; /* PC端 */
                                               color: #6cc70b;
                                               /* 移动端适配 */
                                               @media (max-width: 768px) {
                                                   left: -1.5rem;
                                               }">◆</span>
                                    <span style="font-weight: bolder;">图片查看：</span>最近几周时间里，考虑到图文流量费用收取问题，暂时关闭了七牛云对象存储私有空间访问权限，故博文内的图文无法正常预览，择日考虑开启访问权限。
                                </li>
                                <li style="margin-bottom: 0.8rem; /* PC端 */
                                         position: relative;
                                         list-style-type: none;
                                         /* 移动端适配 */
                                         @media (max-width: 768px) {
                                             margin-bottom: 0.6rem;
                                         }">
                                    <span style="position: absolute;
                                               left: -1.8rem; /* PC端 */
                                               color: #6cc70b;
                                               /* 移动端适配 */
                                               @media (max-width: 768px) {
                                                   left: -1.5rem;
                                               }">◆</span>
                                    <span style="font-weight: bolder;">壁纸下载：</span>后续计划实现壁纸下载功能，均为个人收集的共150+超高分辨率精美壁纸，提供在线预览以及下载功能。
                                </li>
                                <li style="margin-bottom: 0.8rem; /* PC端 */
                                         position: relative;
                                         list-style-type: none;
                                         /* 移动端适配 */
                                         @media (max-width: 768px) {
                                             margin-bottom: 0.6rem;
                                         }">
                                    <span style="position: absolute;
                                               left: -1.8rem; /* PC端 */
                                               color: #6cc70b;
                                               /* 移动端适配 */
                                               @media (max-width: 768px) {
                                                   left: -1.5rem;
                                               }">◆</span>
                                    <span style="font-weight: bolder;">阅读体验：</span>规划完善文章内分页功能，并提供“最近更新”的文章列表，计划收录更新率较高的文章，譬如：阳台日记、叙事之外、岁月如歌、游戏人生等等，尽可能多的提升在线浏览和阅读体验。
                                </li>
                                <li style="margin-bottom: 0.8rem; /* PC端 */
                                         position: relative;
                                         list-style-type: none;
                                         /* 移动端适配 */
                                         @media (max-width: 768px) {
                                             margin-bottom: 0.6rem;
                                         }">
                                    <span style="position: absolute;
                                               left: -1.8rem; /* PC端 */
                                               color: #6cc70b;
                                               /* 移动端适配 */
                                               @media (max-width: 768px) {
                                                   left: -1.5rem;
                                               }">◆</span>
                                    <span style="font-weight: bolder;">友链完善：</span>持续优化完善友链页面，整理归档个人常用的高质量网站合集，无偿分享给有缘人。
                                </li>
                                <li style="margin-bottom: 0.8rem; /* PC端 */
                                         position: relative;
                                         list-style-type: none;
                                         /* 移动端适配 */
                                         @media (max-width: 768px) {
                                             margin-bottom: 0.6rem;
                                         }">
                                    <span style="position: absolute;
                                               left: -1.8rem; /* PC端 */
                                               color: #6cc70b;
                                               /* 移动端适配 */
                                               @media (max-width: 768px) {
                                                   left: -1.5rem;
                                               }">◆</span>
                                    <span style="font-weight: bolder;">音乐餐厅：</span>历经十余小时不间断调研和尝试，本站成功上线”音乐餐厅”功能，目前仅收录了个人在QQ音乐平台积累的两份歌单，再匆忙也要记得点播一首喜欢的音乐，没有音乐熏陶的心灵终究是充满缺憾的。
                                </li>
                                <li style="margin-bottom: 0.8rem; /* PC端 */
                                         position: relative;
                                         list-style-type: none;
                                         /* 移动端适配 */
                                         @media (max-width: 768px) {
                                             margin-bottom: 0.6rem;
                                         }">
                                    <span style="position: absolute;
                                               left: -1.8rem; /* PC端 */
                                               color: #6cc70b;
                                               /* 移动端适配 */
                                               @media (max-width: 768px) {
                                                   left: -1.5rem;
                                               }">◆</span>
                                    <span style="font-weight: bolder;">三言两语：</span>每张照片都是时光的便签，随手一贴就记下了那天，本站结合Mamos实现并注入留言板功能，随缘记录那些藏在照片背后的故事。
                                </li>
                                <li style="margin-bottom: 0.8rem; /* PC端 */
                                         position: relative;
                                         list-style-type: none;
                                         /* 移动端适配 */
                                         @media (max-width: 768px) {
                                             margin-bottom: 0.6rem;
                                         }">
                                    <span style="position: absolute;
                                               left: -1.8rem; /* PC端 */
                                               color: #6cc70b;
                                               /* 移动端适配 */
                                               @media (max-width: 768px) {
                                                   left: -1.5rem;
                                               }">◆</span>
                                    <span style="font-weight: bolder;">旧梦轻拾：</span>更新全站博客文章所属分类，共设有代码锋芒、部署之道、旧梦轻拾、人间片刻等十余种分类。
                                </li>
                                <li style="margin-bottom: 0.8rem; /* PC端 */
                                         position: relative;
                                         list-style-type: none;
                                         /* 移动端适配 */
                                         @media (max-width: 768px) {
                                             margin-bottom: 0.6rem;
                                         }">
                                    <span style="position: absolute;
                                               left: -1.8rem; /* PC端 */
                                               color: #6cc70b;
                                               /* 移动端适配 */
                                               @media (max-width: 768px) {
                                                   left: -1.5rem;
                                               }">◆</span>
                                    <span style="font-weight: bolder;">方寸之间：</span>博客应用版发布，更便捷的阅读体验来了！现已正式推出独立的桌面应用程序与移动端应用程序，暂时通过网盘和代码库提供安装包。
                                </li>
                                <p style="margin-bottom: 0; text-align: right; font-size: 0.9rem; color: #8a8a8a;">
                                    此公告最后更新于：<span style="color: #6cc70b;">2025/09/30晚</span>
                                </p>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 公告页脚 - 响应式设计 -->
            <div class="modal-footer"
                 style="border-top: 1px solid rgba(255,255,255,0.2);
                        padding: 1rem 1.5rem; /* PC端 */
                        justify-content: space-between;
                        /* 移动端适配 */
                        @media (max-width: 768px) {
                            padding: 0.8rem;
                        }">
                <small style="color: #ffffff;
                            font-size: 0.9rem; /* PC端 */
                            /* 移动端适配 */
                            @media (max-width: 768px) {
                                font-size: 0.8rem;
                            }">
                    <i class="iconfont icon-pen"></i>
                    <i class="fas fa-info-circle mr-1"></i>芒种前夕 · 旅途第813天
                    · 2025/05/28
                </small>
                <button id="confirm-btn" type="button" class="btn btn-sm" data-dismiss="modal"
                        style="background: #a0a0a0;
                               color: #ffffff;
                               border-radius: 4px;
                               padding: 0.5rem 1.2rem; /* PC端 */
                               border: none;
                               font-size: 0.9rem;
                               /* 移动端适配 */
                               @media (max-width: 768px) {
                                   padding: 0.3rem 0.8rem;
                                   font-size: 0.85rem;
                               }">
                    <i class="fas fa-check mr-1" style="color: #ffffff;">心已阅</i>
                </button>
            </div>
        </div>
    </div>
</div>

<style>
  .notice-title {
    display: flex;
    align-items: center;
    white-space: nowrap;
  }

  .notice-title:before,
  .notice-title:after {
    content: "";
    flex: 1;
    height: 1px;
    background: #ddd; /* 横线颜色 */
    margin: 0 10px; /* 横线与文字的间距 */
  }
</style>


<style>
  /* 响应式模态框宽度 */
  @media (min-width: 992px) {
    #modalNotice .modal-dialog {
      max-width: 800px;
    }
  }

  @media (max-width: 991px) {
    #modalNotice .modal-dialog {
      margin: 0.5rem auto;
    }
  }
</style>

<script>
  // 页面加载完成后执行
  document.addEventListener('DOMContentLoaded', function () {
    // 检查是否首次访问
    if (!localStorage.getItem('hasShownPopup')) {
      // 动态加载notice.ejs内容
      fetch('_partials/notice.ejs')  // 替换为实际路径
        .then(response => response.text())
        .then(html => {
          // 插入到页面body末尾
          document.body.insertAdjacentHTML('beforeend', html);

          // 手动初始化Bootstrap模态框
          $('#modalNotice').modal('show');

          // 标记为已显示
          localStorage.setItem('hasShownPopup', 'true');

          // 监听关闭事件
          $('#modalNotice').on('hidden.bs.modal', function () {
            // 可选的后续处理
          });
        })
        .catch(error => {
          console.error('加载公告栏失败:', error);
          // 备用方案：显示简单弹窗
          const fallbackHTML = `
                <div class="modal-backdrop" style="/* 样式 */">
                    <div class="modal-content">/* 内容 */</div>
                </div>`;
          document.body.insertAdjacentHTML('beforeend', fallbackHTML);
        });
    }
  });
</script>

    

    
  </main>

  <footer>
    <!-- 博客 - 页脚 -->
<div class="footer-inner">
  
    <div class="footer-content">
       <a href="https://hexo.fluid-dev.com/docs/guide/" target="_blank" rel="nofollow noopener"> <span>Memory | 个人文档站点</span> </a>
<i class="iconfont icon-love"></i> <a href="https://hexo.fluid-dev.com/docs/guide/" target="_blank" rel="nofollow noopener"> <span>配置指南 | Hexo Fluid 用户手册</span> </a> 
    </div>
  

  

  
    <!-- 备案信 ICP for China -->
    <div class="beian">
  <span>
    <a href="http://beian.miit.gov.cn/" target="_blank" rel="nofollow noopener">
      京ICP证123456号
    </a>
  </span>
  
    
      <span>
        <a
          href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=12345678"
          rel="nofollow noopener"
          class="beian-police"
          target="_blank"
        >
          
            <span style="visibility: hidden; width: 0">|</span>
            <img src="/blog/img/police_beian.png" alt="police-icon"/>
          
          <span>京公网安备12345678号</span>
        </a>
      </span>
    
  
</div>

  

  

</div>

<!-- 评论框美化 -->
<style>
    #comments .veditor{
        min-height: 20vh;
        background-image: url(http://blog.memory-life.icu/pathway0716.jpg);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: right;
        background-color: rgba(255,255,255,0);
        resize: none;}
</style>

<script>
    //   自定义邮箱审核规则
    document.body.addEventListener('click', function(e) {
        if (e.target.classList.contains('vsubmit')) {
            const email = document.querySelector('input[type=email]');
            const nick = document.querySelector('input[name=nick]');
            const reg = /^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/;
            if (!email.value || !nick.value || !reg.test(email.value)) {
                const str = `<div class="valert text-center"><div class="vtext">请填写正确的昵称和邮箱！</div></div>`;
                const vmark = document.querySelector('.vmark');
                vmark.innerHTML = str;
                vmark.style.display = 'block';
                setTimeout(function() {
                    vmark.style.display = 'none';
                    vmark.innerHTML = '';
                }, 2500);
            }
        }
    })
</script>



  </footer>

  <!-- Scripts -->
  
  <script  src="https://lib.baomitu.com/nprogress/0.2.0/nprogress.min.js" ></script>
  <link  rel="stylesheet" href="https://lib.baomitu.com/nprogress/0.2.0/nprogress.min.css" />

  <script>
    NProgress.configure({"showSpinner":false,"trickleSpeed":100})
    NProgress.start()
    window.addEventListener('load', function() {
      NProgress.done();
    })
  </script>


<script  src="https://lib.baomitu.com/jquery/3.6.0/jquery.min.js" ></script>
<script  src="https://lib.baomitu.com/twitter-bootstrap/4.6.1/js/bootstrap.min.js" ></script>
<script  src="/blog/js/events.js" ></script>
<script  src="/blog/js/plugins.js" ></script>


  <script  src="https://lib.baomitu.com/typed.js/2.0.12/typed.min.js" ></script>
  <script>
    (function (window, document) {
      var typing = Fluid.plugins.typing;
      var subtitle = document.getElementById('subtitle');
      if (!subtitle || !typing) {
        return;
      }
      var text = subtitle.getAttribute('data-typed-text');
      
        typing(text);
      
    })(window, document);
  </script>







  
<script>
  Fluid.utils.createScript('https://lib.baomitu.com/tocbot/4.18.2/tocbot.min.js', function() {
    var toc = jQuery('#toc');
    if (toc.length === 0 || !window.tocbot) { return; }
    var boardCtn = jQuery('#board-ctn');
    var boardTop = boardCtn.offset().top;

    window.tocbot.init(Object.assign({
      tocSelector     : '#toc-body',
      contentSelector : '.markdown-body',
      linkClass       : 'tocbot-link',
      activeLinkClass : 'tocbot-active-link',
      listClass       : 'tocbot-list',
      isCollapsedClass: 'tocbot-is-collapsed',
      collapsibleClass: 'tocbot-is-collapsible',
      scrollSmooth    : true,
      includeTitleTags: true,
      headingsOffset  : -boardTop,
    }, CONFIG.toc));
    if (toc.find('.toc-list-item').length > 0) {
      toc.css('visibility', 'visible');
    }

    Fluid.events.registerRefreshCallback(function() {
      if ('tocbot' in window) {
        tocbot.refresh();
        var toc = jQuery('#toc');
        if (toc.length === 0 || !tocbot) {
          return;
        }
        if (toc.find('.toc-list-item').length > 0) {
          toc.css('visibility', 'visible');
        }
      }
    });
  });
</script>


  <script src=https://lib.baomitu.com/clipboard.js/2.0.11/clipboard.min.js></script>

  <script>Fluid.plugins.codeWidget();</script>


  
<script>
  Fluid.utils.createScript('https://lib.baomitu.com/anchor-js/4.3.1/anchor.min.js', function() {
    window.anchors.options = {
      placement: CONFIG.anchorjs.placement,
      visible  : CONFIG.anchorjs.visible
    };
    if (CONFIG.anchorjs.icon) {
      window.anchors.options.icon = CONFIG.anchorjs.icon;
    }
    var el = (CONFIG.anchorjs.element || 'h1,h2,h3,h4,h5,h6').split(',');
    var res = [];
    for (var item of el) {
      res.push('.markdown-body > ' + item.trim());
    }
    if (CONFIG.anchorjs.placement === 'left') {
      window.anchors.options.class = 'anchorjs-link-left';
    }
    window.anchors.add(res.join(', '));

    Fluid.events.registerRefreshCallback(function() {
      if ('anchors' in window) {
        anchors.removeAll();
        var el = (CONFIG.anchorjs.element || 'h1,h2,h3,h4,h5,h6').split(',');
        var res = [];
        for (var item of el) {
          res.push('.markdown-body > ' + item.trim());
        }
        if (CONFIG.anchorjs.placement === 'left') {
          anchors.options.class = 'anchorjs-link-left';
        }
        anchors.add(res.join(', '));
      }
    });
  });
</script>


  
<script>
  Fluid.utils.createScript('https://lib.baomitu.com/fancybox/3.5.7/jquery.fancybox.min.js', function() {
    Fluid.plugins.fancyBox();
  });
</script>


  <script>Fluid.plugins.imageCaption();</script>

  <script  src="/blog/js/local-search.js" ></script>

  <script defer src="/blog/js/leancloud.js" ></script>




    
<script src="https://cdn.jsdelivr.net/npm/aplayer@1.10.1/dist/APlayer.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/meting@2/dist/Meting.min.js"></script>



<!-- 主题的启动项，将它保持在最底部 -->
<!-- the boot of the theme, keep it at the bottom -->
<script  src="/blog/js/boot.js" ></script>


  

  <noscript>
    <div class="noscript-warning">博客在允许 JavaScript 运行的环境下浏览效果更佳</div>
  </noscript>
</body>
</html>
